<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Version: 5.5.0 Drools Expert + Fusion</div><div>Stateful ksession in STREAM mode</div><div><br></div><div>In an integration test, I ___sometimes_____!!! (always the same variables... &nbsp;) get the following Exception:</div><div><br></div><div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);">Exception in thread "Thread-1" <span style="text-decoration: underline ; color: #011993">java.lang.NullPointerException</span></div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.base.com.myApp.model.Measurement1965915394$getValue.getIntValue(Unknown Source)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.base.extractors.BaseIntClassFieldReader.getValue(<span style="text-decoration: underline ; color: #011993">BaseIntClassFieldReader.java:52</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.base.ClassFieldReader.getValue(<span style="text-decoration: underline ; color: #011993">ClassFieldReader.java:87</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.Declaration.getValue(<span style="text-decoration: underline ; color: #011993">Declaration.java:233</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.base.mvel.MVELCompilationUnit.updateFactory(<span style="text-decoration: underline ; color: #011993">MVELCompilationUnit.java:362</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.base.mvel.MVELCompilationUnit.updateFactory(<span style="text-decoration: underline ; color: #011993">MVELCompilationUnit.java:289</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.evaluate(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:59</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:117</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:101</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.ensureBranchEvaluation(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:120</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:101</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.ensureCompleteEvaluation(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:90</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConditionEvaluator.getAnalyzedCondition(<span style="text-decoration: underline ; color: #011993">MvelConditionEvaluator.java:82</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConstraint.executeJitting(<span style="text-decoration: underline ; color: #011993">MvelConstraint.java:270</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConstraint.access$200(<span style="text-decoration: underline ; color: #011993">MvelConstraint.java:51</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at org.drools.rule.constraint.MvelConstraint$ConditionJitter.run(<span style="text-decoration: underline ; color: #011993">MvelConstraint.java:250</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(<span style="text-decoration: underline ; color: #011993">ThreadPoolExecutor.java:895</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.util.concurrent.ThreadPoolExecutor$Worker.run(<span style="text-decoration: underline ; color: #011993">ThreadPoolExecutor.java:918</span>)</div><div style="margin: 0px; font-family: Monaco; color: rgb(255, 38, 0);"><span class="Apple-tab-span" style="white-space:pre">        </span>at java.lang.Thread.run(<span style="text-decoration: underline ; color: #011993">Thread.java:695</span>)</div></div><div><br></div><div><br></div><div>Where Measurement is one of my custom model classes and an @event.&nbsp;</div><div>I tried to catch the exception but I don't know where it actually occurs. There is one rule that retracts Measurement in certain situations - the problem might be related to that (is it unwise to retract @event ?).</div><div><br></div><div>Any idea?</div><div><br></div><div>- Alex</div><div><br></div><div><br></div></body></html>