Could it be that the fact where the NPE happens during its insert contains a field of some wrapper type (e.g.)Integer that&#39;s null and needs to be converted to a simple type (e.g. int)? <br><br>But the same NPE should happen when you insert the same fact with rules coming from a single file - but you&#39;ll know whether you have changed the facts.<br>
<br>-W<br><br><div class="gmail_quote">On Sat, Jul 25, 2009 at 5:33 PM, Olaf Raether <span dir="ltr">&lt;<a href="mailto:o.raether@epro.de">o.raether@epro.de</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;">
<br>
Mmmh,<br>
<br>
i still get an NPE but from a different function within<br>
ClassFieldReader.java<br>
<br>
with the 4.07 Api calls it was<br>
<br>
at org.drools.base.ClassFieldReader.isNullValue(ClassFieldReader.java:183)<br>
<br>
now its<br>
<br>
java.lang.NullPointerException<br>
        at org.drools.base.ClassFieldReader.getIndex(ClassFieldReader.java:78)<br>
        at<br>
org.drools.util.LeftTupleIndexHashTable.&lt;init&gt;(LeftTupleIndexHashTable.java:48)<br>
        at<br>
org.drools.util.LeftTupleIndexHashTable.&lt;init&gt;(LeftTupleIndexHashTable.java:35)<br>
        at<br>
org.drools.common.DoubleBetaConstraints.createBetaMemory(DoubleBetaConstraints.java:231)<br>
        at org.drools.reteoo.BetaNode.createMemory(BetaNode.java:340)<br>
        .....<br>
<br>
i have no idea how to solve this at the moment.<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24658903.html" target="_blank">http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24658903.html</a><br>

</font><div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>