[rules-users] Problem when using multiple rule files (Drools 5)

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jul 27 08:41:00 EDT 2009


Could it be that the fact where the NPE happens during its insert contains a
field of some wrapper type (e.g.)Integer that's null and needs to be
converted to a simple type (e.g. int)?

But the same NPE should happen when you insert the same fact with rules
coming from a single file - but you'll know whether you have changed the
facts.

-W

On Sat, Jul 25, 2009 at 5:33 PM, Olaf Raether <o.raether at epro.de> wrote:

>
> Mmmh,
>
> i still get an NPE but from a different function within
> ClassFieldReader.java
>
> with the 4.07 Api calls it was
>
> at org.drools.base.ClassFieldReader.isNullValue(ClassFieldReader.java:183)
>
> now its
>
> java.lang.NullPointerException
>        at
> org.drools.base.ClassFieldReader.getIndex(ClassFieldReader.java:78)
>        at
>
> org.drools.util.LeftTupleIndexHashTable.<init>(LeftTupleIndexHashTable.java:48)
>        at
>
> org.drools.util.LeftTupleIndexHashTable.<init>(LeftTupleIndexHashTable.java:35)
>        at
>
> org.drools.common.DoubleBetaConstraints.createBetaMemory(DoubleBetaConstraints.java:231)
>        at org.drools.reteoo.BetaNode.createMemory(BetaNode.java:340)
>        .....
>
> i have no idea how to solve this at the moment.
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24658903.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090727/96e02999/attachment.html 


More information about the rules-users mailing list