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
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users