<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Also as a tip, turn on TRACE mode, for the logback.xml, and post back the results.<div><br></div><div>Mark</div><div><br></div><div><div style="border:1px inset;padding:2%;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: 6px; background-color: rgb(255, 255, 255); position: static; z-index: auto;" bgcolor="#ffffff"><i style="font-family: Menlo;">&lt;?</i><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">xml version=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"1.0" </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">encoding=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"UTF-8"</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>?&gt;
</i></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">configuration</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">  </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">appender </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">name=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"consoleAppender" </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">class=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"ch.qos.logback.core.ConsoleAppender"</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">    </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">encoder</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>
</i></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>      </i></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">pattern</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">%d [%t] %-5p %m%n</font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;/</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">pattern</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">    </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;/</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">encoder</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">  </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;/</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">appender</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">  </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">logger </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">name=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"org.drools" </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">level=</span></b></font></font><font color="#008000" face="Menlo"><b>“</b></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">TRACE"</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">/&gt;</span></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>
</i></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>
</i></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>  </i></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">root </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">level=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"info"</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>
</i></font></font><font color="#808080" style="font-family: Menlo;"><font bgcolor="#ffffff"><i>    </i></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">appender-ref </span></b></font></font><font color="#0000ff" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">ref=</span></b></font></font><font color="#008000" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">"consoleAppender" </span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">/&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">  </font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;/</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">root</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&lt;/</span></font></font><font color="#000080" style="font-family: Menlo;"><font bgcolor="#efefef"><b><span style="background-color: rgb(239, 239, 239);">configuration</span></b></font></font><font color="#000000" style="font-family: Menlo;"><font bgcolor="#efefef"><span style="background-color: rgb(239, 239, 239);">&gt;</span></font></font><font color="#000000" style="font-family: Menlo;">
</font><font color="#000000" style="font-family: Menlo;">
</font></pre></div><div><br></div><div><br></div><div><br></div><div><div>On 16 Feb 2014, at 23:55, Mark Proctor &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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?<div><br></div><div>Mark<br><div><div>On 16 Feb 2014, at 22:50, nxv &lt;<a href="mailto:nxvanderlinden@gmail.com">nxvanderlinden@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Here is the unit test. Drools-LeftTupleIndexHashTable-61.zip<br>&lt;<a href="http://drools.46999.n3.nabble.com/file/n4028135/Drools-LeftTupleIndexHashTable-61.zip">http://drools.46999.n3.nabble.com/file/n4028135/Drools-LeftTupleIndexHashTable-61.zip</a>&gt; &nbsp;<br><br><br>Mark Proctor wrote<br><blockquote type="cite">Can you paste the 3 rules, that cause the issue? We’ll see if we can gleam<br>something from that, while we wait for your unit test.<br><br>Mark<br>On 16 Feb 2014, at 19:25, nxv &amp;lt;<br></blockquote><br><blockquote type="cite">nxvanderlinden@<br></blockquote><br><blockquote type="cite">&amp;gt; wrote:<br><br><blockquote type="cite">Hello,<br><br>I keep trying to migrate drools from 5.5 to 6 on my project. &nbsp;I found a<br>second regression/issue. &nbsp;I'm trying to produce a unit test for<br>6.1.0-SNAPSHOT but I face some difficulties to determine the cause of<br>this<br>issue. &nbsp;So I have a drl with 3 rules. &nbsp;I'm a bit disappointed because if<br>I<br>switch two rules (without modifying anything, just switch one rule with<br>another in the drl file), the NPE disappears...<span class="Apple-converted-space">&nbsp;</span><br><br><br>Here is the stacktrace:<br><br>java.lang.NullPointerException<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.util.index.LeftTupleIndexHashTable.remove(LeftTupleIndexHashTable.java:386)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.doUpdatesReorderLeftMemory(RuleNetworkEvaluator.java:799)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at org.drools.core.phreak.PhreakJoinNode.doNode(PhreakJoinNode.java:38)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:547)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:533)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:161)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:116)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:201)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:68)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:935)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1200)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:952)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:926)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:232)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:106)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.command.runtime.rule.FireAllRulesCommand.execute(FireAllRulesCommand.java:32)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:155)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.command.runtime.BatchExecutionCommandImpl.execute(BatchExecutionCommandImpl.java:76)<br><span class="Apple-tab-span" style="white-space: pre;">        </span>at<br>org.drools.core.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:334)<br><br><br><br><br><br>--<br>View this message in context:<br><a href="http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleIndexHashTable-remove-tp4028133.html">http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleIndexHashTable-remove-tp4028133.html</a><br>Sent from the Drools: User forum mailing list archive at<span class="Apple-converted-space">&nbsp;</span><a href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><br></blockquote></blockquote><br><blockquote type="cite">rules-users@.jboss<br></blockquote><br><blockquote type="cite"><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote><br><br>_______________________________________________<br>rules-users mailing list<br></blockquote><br><blockquote type="cite">rules-users@.jboss<br></blockquote><br><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote><br><br><br><br><br>--<br>View this message in context:<span class="Apple-converted-space">&nbsp;</span><a href="http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleIndexHashTable-remove-tp4028133p4028135.html">http://drools.46999.n3.nabble.com/NullPointerException-with-LeftTupleIndexHashTable-remove-tp4028133p4028135.html</a><br>Sent from the Drools: User forum mailing list archive at<span class="Apple-converted-space">&nbsp;</span><a href="http://nabble.com/">Nabble.com</a>.<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">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>