Have not tried this with 5. 

Don't know if this makes a difference or not but I just added the following to our working memory config:

rbconf.setShadowProxyExcludes("com.m2syscorp.i24card.rulesengine.facts.CountryGroup com.m2syscorp.i24card.rulesengine.facts.MerchantCategoryGroup");

Neither of those class facts are modified.  We insert them, match on them, retract them. 

Scott




On Thu, Oct 15, 2009 at 12:27 PM, Scott Burrows <scottjburrows@gmail.com> wrote:

Hi all,

Using 4.0.7.

I am getting this null pointer when doing an Insert into working memory.  

I know the object I am inserting is not null.


java.lang.NullPointerException
at org.drools.util.PrimitiveLongStack$Page.remove(PrimitiveLongStack.java:137)
at org.drools.util.PrimitiveLongStack.pop(PrimitiveLongStack.java:69)
at org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:44)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:785)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:684)


Any idea what might be causing this? 


Scott