<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://1511/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">5.6 is pretty much ready to go, someone just has to build it and upload binaries. I'd recommend you build 5.6 and try those binaries.<div><br></div><div>Mark<br><div><div>On 15 Oct 2013, at 18:53, "Bransford-Koons, Geoff" <<a href="mailto:Geoff.Bransford-Koons@Teradata.com">Geoff.Bransford-Koons@Teradata.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I’m trying to update our application from Drools 4.0.7 to Drools 5.5 (or 5.3 if that’s better).<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">All the rules compile and I am serializing the KnowledgeBase and reading it in upon application start-up.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Inserting facts works find. Retracting can often return the NullPointerException shown below. That clip comes from a unit test that literally just inserts 10 “TestFact” objects and then tries to retract them one at a time. No rule firing happens, just insertion and retraction. I did try adding a rule firing in between the insert and retraction loops but it made no difference. These “TestFact” object don’t actually trigger any rules if that matters.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I’ve tried this with both the Drools 5.5.0.Final and 5.3.0.Final jars with the same results. Searches on the forum and on Google show this as a bug in 5.5.0.Final, but say it should work in 5.3.0.Final. It doesn’t work on either for me.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I am going to try some variations on this test, but it seems like this should work as-is. <o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Any suggestions would be greatly appreciated.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; ">2013-10-14 11:56:02,533 (ERROR) [AgdKnowledgeSession] caught exception trying to retract TestFact [name=testfact-0]</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">java.lang.NullPointerException</span></u><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.core.util.RightTupleIndexHashTable.remove(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">RightTupleIndexHashTable.java:365</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.reteoo.NotNode.retractRightTuple(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">NotNode.java:172</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.reteoo.ObjectTypeNode.retractObject(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">ObjectTypeNode.java:257</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.reteoo.EntryPointNode.retractObject(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">EntryPointNode.java:330</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.common.NamedEntryPoint.retract(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">NamedEntryPoint.java:542</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.drools.common.NamedEntryPoint.retract(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">NamedEntryPoint.java:486</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agd.AgdKnowledgeSession.retract(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">AgdKnowledgeSession.java:134</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agd.AgCoreManager.executeFactEvent(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">AgCoreManager.java:279</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agd.AgCoreManager.executeRuleEngine(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">AgCoreManager.java:189</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agd.AgCoreManager.enqueue(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">AgCoreManager.java:259</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agd.AgCoreManager.retractFact(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">AgCoreManager.java:480</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at com.teradata.agdtest.functional.FactInsertionAndRetractionTest.testFactInsertion(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">FactInsertionAndRetractionTest.java:50</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at sun.reflect.NativeMethodAccessorImpl.invoke0(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">Native Method</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at java.lang.reflect.Method.invoke(Unknown Source)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.MethodInvocationHelper.invokeMethod(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">MethodInvocationHelper.java:84</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.Invoker.invokeMethod(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">Invoker.java:714</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.Invoker.invokeTestMethod(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">Invoker.java:901</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.Invoker.invokeTestMethods(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">Invoker.java:1231</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.TestMethodWorker.invokeTestMethods(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestMethodWorker.java:127</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.internal.TestMethodWorker.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestMethodWorker.java:111</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.TestRunner.privateRun(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestRunner.java:767</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.TestRunner.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestRunner.java:617</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunner.runTest(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunner.java:335</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunner.runSequentially(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunner.java:330</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunner.privateRun(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunner.java:291</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunner.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunner.java:240</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunnerWorker.runSuite(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunnerWorker.java:52</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.SuiteRunnerWorker.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">SuiteRunnerWorker.java:86</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.TestNG.runSuitesSequentially(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestNG.java:1224</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.TestNG.runSuitesLocally(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestNG.java:1149</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.TestNG.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">TestNG.java:1057</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.remote.RemoteTestNG.run(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">RemoteTestNG.java:111</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.remote.RemoteTestNG.initAndRun(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">RemoteTestNG.java:204</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><span style="font-size: 10pt; font-family: Consolas; "><o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 10pt; font-family: Consolas; color: red; "> at org.testng.remote.RemoteTestNG.main(</span><u><span style="font-size: 10pt; font-family: Consolas; color: navy; ">RemoteTestNG.java:175</span></u><span style="font-size: 10pt; font-family: Consolas; color: red; ">)</span><o:p></o:p></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" style="color: purple; text-decoration: underline; ">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" style="color: purple; text-decoration: underline; ">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></blockquote></div><br></div></body></html>