I assume you can't recompile the source code of 5.5 either...
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
On Jul 14, 2014 2:13 PM, "braveheart85" <andrea.pacifico.85(a)gmail.com>
wrote:
Hi Davide,
Thanks for the reply.
Unfortunately I cannot migrate to version 5.6 or newer.
Today I have inspected that part of code, but it is quite huge and complex
in the Reeteo part.
I have seen the NullPointer is due to the "nodes" retrieved from the
"rules"
Map (line 250).
Moreover, this non-deterministic behaviour complicates everything.
65 private Map<Rule, BaseNode[]> rules;
244 public synchronized void More ...removeRule(final Rule rule) {
245 // reset working memories for potential propagation
246 InternalWorkingMemory[] workingMemories =
this.ruleBase.getWorkingMemories();
247
248 final Object object = this.rules.remove( rule );
249
250 final BaseNode[] nodes = (BaseNode[]) object;
251 final RuleRemovalContext context = new RuleRemovalContext( rule
);
252 for (final BaseNode node : nodes) {
253 node.remove( context,
254 this,
255 null,
256 workingMemories );
257 }
258
259 resetMasks(context);
260 }
I don't know if you can help me in some way...
Thanks in all cases.
Andrea
--
View this message in context:
http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users