you have two drl files. One with two rules, one with one rule. Which is the rule you were
adding and removing to see the bug?
Mark
On 16 Feb 2014, at 22:50, nxv <nxvanderlinden(a)gmail.com> wrote:
Here is the unit test. Drools-LeftTupleIndexHashTable-61.zip
<
http://drools.46999.n3.nabble.com/file/n4028135/Drools-LeftTupleIndexHash...
Mark Proctor wrote
> Can you paste the 3 rules, that cause the issue? We’ll see if we can gleam
> something from that, while we wait for your unit test.
>
> Mark
> On 16 Feb 2014, at 19:25, nxv <
> nxvanderlinden@
> > wrote:
>
>> Hello,
>>
>> I keep trying to migrate drools from 5.5 to 6 on my project. I found a
>> second regression/issue. I'm trying to produce a unit test for
>> 6.1.0-SNAPSHOT but I face some difficulties to determine the cause of
>> this
>> issue. So I have a drl with 3 rules. I'm a bit disappointed because if
>> I
>> switch two rules (without modifying anything, just switch one rule with
>> another in the drl file), the NPE disappears...
>>
>>
>> Here is the stacktrace:
>>
>> java.lang.NullPointerException
>> at
>>
org.drools.core.util.index.LeftTupleIndexHashTable.remove(LeftTupleIndexHashTable.java:386)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.doUpdatesReorderLeftMemory(RuleNetworkEvaluator.java:799)
>> at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:38)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:547)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:533)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161)
>> at
>>
org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116)
>> at
>> org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:201)
>> at
>> org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:68)
>> at
>> org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935)
>> at
>> org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1200)
>> at
>>
org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:952)
>> at
>>
org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:926)
>> at
>>
org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:232)
>> at
>>
org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:106)
>> at
>>
org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:32)
>> at
>>
org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:155)
>> at
>>
org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:76)
>> at
>>
org.drools.core.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:334)
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>>
http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleInde...
>> Sent from the Drools: User forum mailing list archive at
Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>>
> rules-users@.jboss
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users@.jboss
>
https://lists.jboss.org/mailman/listinfo/rules-users
--
View this message in context:
http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleInde...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users