Also as a tip, turn on TRACE mode, for the logback.xml, and post back the results.
Mark <?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d [%t] %-5p %m%n</pattern> </encoder> </appender> <logger name="org.drools" level=“TRACE"/> <root level="info"> <appender-ref ref="consoleAppender" /> </root> </configuration> On 16 Feb 2014, at 23:55, Mark Proctor <mproc...@codehaus.org> wrote: > 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 <nxvanderlin...@gmail.com> wrote: > >> Here is the unit test. Drools-LeftTupleIndexHashTable-61.zip >> <http://drools.46999.n3.nabble.com/file/n4028135/Drools-LeftTupleIndexHashTable-61.zip> >> >> >> >> 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-LeftTupleIndexHashTable-remove-tp4028133.html >>>> 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-LeftTupleIndexHashTable-remove-tp4028133p4028135.html >> Sent from the Drools: User forum mailing list archive at Nabble.com. >> >> _______________________________________________ >> rules-users mailing list >> rules-users@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users