<p dir="ltr">I assume you can't recompile the source code of 5.5 either... <br>
If not, the only workaround is 1) try to identify which rule or rules cause the problem, 2) rewrite them to increase (or reduce) the node sharing</p>
<div class="gmail_quote">On Jul 14, 2014 2:13 PM, "braveheart85" <<a href="mailto:andrea.pacifico.85@gmail.com">andrea.pacifico.85@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Davide,<br>
<br>
Thanks for the reply.<br>
Unfortunately I cannot migrate to version 5.6 or newer.<br>
Today I have inspected that part of code, but it is quite huge and complex<br>
in the Reeteo part.<br>
I have seen the NullPointer is due to the "nodes" retrieved from the "rules"<br>
Map (line 250).<br>
Moreover, this non-deterministic behaviour complicates everything.<br>
<br>
65 private Map<Rule, BaseNode[]> rules;<br>
<br>
244 public synchronized void More ...removeRule(final Rule rule) {<br>
245 // reset working memories for potential propagation<br>
246 InternalWorkingMemory[] workingMemories =<br>
this.ruleBase.getWorkingMemories();<br>
247<br>
248 final Object object = this.rules.remove( rule );<br>
249<br>
250 final BaseNode[] nodes = (BaseNode[]) object;<br>
251 final RuleRemovalContext context = new RuleRemovalContext( rule<br>
);<br>
252 for (final BaseNode node : nodes) {<br>
253 node.remove( context,<br>
254 this,<br>
255 null,<br>
256 workingMemories );<br>
257 }<br>
258<br>
259 resetMasks(context);<br>
260 }<br>
<br>
I don't know if you can help me in some way...<br>
Thanks in all cases.<br>
Andrea<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-memory-tp4030341p4030344.html" target="_blank">http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-memory-tp4030341p4030344.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div>