Another pointer: The bug also depends on the Drools DRL package statement specifying the same package name as the Java declaration of the class that should be used as an event.<br><br>### OK ###<br>package hashcode<br>import hashcode.SimpleType<br>
declare SimpleType<br>  role(@event)<br>end<br><br>### NOT OK ###<br>
package xxxxxxxxxxx<br>
import hashcode.SimpleType<br>
declare SimpleType<br>
  role(@event)<br>
end<br>
<br>So this <i>could</i> be related to the strange effect and/or bug in connection with declare for a Pojo required or not for use in a declare X extends Pojo.<br><br>
-W<br><br><br><div class="gmail_quote">On 14 July 2011 12:21, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 14 July 2011 11:35, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org" target="_blank">mproctor@codehaus.org</a>&gt;</span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    On 14/07/2011 10:10, Wolfgang Laun wrote:
    <blockquote type="cite"><div>On 13 July 2011 17:09, John <span dir="ltr">&lt;<a href="mailto:jfullard@progeny.net" target="_blank">jfullard@progeny.net</a>&gt;</span>
      wrote:<br>
      </div><div class="gmail_quote"><div>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          Interesting... I have no idea why the KnowledgeBuilder would
          compile the DRL<br>
          differently than the KnowledgeAgent,</blockquote>
        </div><div><br>
          There&#39;s a bug in the incremental build as done by the
          KnowledgeAgent. If the KA configuration property
          drools.agent.newInstance is set to false, some type
          information is not put into the new KBase.<br>
          -W<br>
        </div>
      </div>
    </blockquote>
    This might be related to the kagent using a HashMap instead of a
    LinkedHashMap to store resources, thus any updates may not be
    applied in the order that resources where defined....<br></div></blockquote></div><div><br>Not likely with a single DRL in the Change Set XML and on the first build.<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div bgcolor="#FFFFFF" text="#000000">
    <br>
    I believe estaban is working on this issue and it may already be
    fixed.<br></div></blockquote></div><div><br>Not yet.<br><font color="#888888"><br>-W <br><br></font></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#FFFFFF" text="#000000">

    <br>
    Mark<br>
    <blockquote type="cite"><div>
      <div class="gmail_quote">
        <div> </div>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> but I don&#39;t think I had this problem in<br>
          5.1.1.  I&#39;m up and running now with the type fully declared in
          DRL and I can<br>
          live with that.  Thanks for looking into this.<br>
          <font color="#888888"><br>
            --<br>
            View this message in context: <a href="http://drools.46999.n3.nabble.com/NPE-on-fact-insertion-if-rule-has-sliding-window-tp3163261p3166323.html" target="_blank">http://drools.46999.n3.nabble.com/NPE-on-fact-insertion-if-rule-has-sliding-window-tp3163261p3166323.html</a><br>


          </font>
          <div>
            <div>Sent from the Drools: User forum mailing
              list archive at Nabble.com.<br>
              _______________________________________________<br>
              rules-users mailing list<br>
              <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
              <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      </div><pre>_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div></div><br>
</blockquote></div><br>