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

Davide Sottara dsotty at gmail.com
Mon Jul 14 16:10:14 EDT 2014


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 at 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-memory-tp4030341p4030344.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140714/7b3b8398/attachment.html 


More information about the rules-users mailing list