[rules-users] Problem when I cleaning the production memory.

braveheart85 andrea.pacifico.85 at gmail.com
Mon Jul 14 14:12:50 EDT 2014


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-memory-tp4030341p4030344.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list