[rules-users] NPE on fact insertion if rule has sliding window

Edson Tirelli ed.tirelli at gmail.com
Fri Oct 7 16:08:04 EDT 2011


   This is fixed in master. Will be in 3.1 final release.

   Edson

2011/10/7 mike9322 <michael.melton.ctr at navy.mil>

>
> laune wrote:
> >
> > There'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.
> >
>
> I added the following comment to the JIRA related to this issue
> (https://issues.jboss.org/browse/JBRULES-3145).  Cross-posting here in
> case
> anyone else is having the issue and arrives here via Google like I did.
>
> "I am seeing the same behavior with my KA newInstance = true. I was able to
> workaround it by ensuring that my event POJOs are defined in the same
> package as my rules.
>
> In other words, this DOES NOT work:
> Rule package: com.example.rules
> POJO package: com.example.rules.model (import statements included in DRL)
>
> This DOES work:
> Rule package: com.example.rules
> POJO package: com.example.rules (no import statements required)
>
> I did not have to move my event declaration to my DRL; they are still
> POJOs.
> I would prefer to have my POJOs in their own package but I can live with
> this workaround for now."
>
> Mike
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/NPE-on-fact-insertion-if-rule-has-sliding-window-tp3163261p3403934.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111007/9631e992/attachment.html 


More information about the rules-users mailing list