Possibly, upon inspection I found an entity class with suspicious looking hashCode and
equals methods (source generate equals/hashcode is still to hard for some people it
seems). I'm trying to recreate a simple test case, to reproduce. What's the
simplest rule to generate a RightTupleIndexHashTable? Will any attribute constraint do
e.g.:
BadClass($value : value)
BadClass(value == $value)
Thanks,
-Jess
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Edson Tirelli
Sent: Wednesday, January 14, 2009 4:43 PM
To: Rules Users List
Subject: Re: [rules-users] NPE in RightTuple
Looks like a bug. Can you please open a JIRA with a test case? My guess is that your
rules are changing a fact attribute that is causing the equals()/hashcode() methods of the
object to return a different result?
[]s
Edson
2009/1/14 Evans, Jess <JEvans(a)collegeboard.org>
Does anyone know what this would be indicative of? I've seen it occur periodically at
which point I have to discard the session. I flatten and assert my data, run the rules,
and then retract the handles collected on assertion. I've ensured the fact handle
parameter is never null. I have the stateful session wrapped in a synchronized business
façade, so I don't think it should be a concurrency issue (unless I have a bug of
course). I'm running Drools 5 M4.
java.lang.NullPointerException
at
org.drools.util.RightTupleIndexHashTable.remove(RightTupleIndexHashTable.java:224)
at org.drools.reteoo.JoinNode.retractRightTuple(JoinNode.java:204)
at org.drools.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:210)
at org.drools.reteoo.EntryPointNode.retractObject(EntryPointNode.java:190)
at
org.drools.common.AbstractWorkingMemory.retract(AbstractWorkingMemory.java:1078)
at
org.drools.common.AbstractWorkingMemory.retract(AbstractWorkingMemory.java:1045)
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @
www.jboss.com