[rules-dev] Recursion bug in JBoss TMS

Mark Proctor mproctor at codehaus.org
Sun Sep 19 07:06:36 EDT 2010


  Could you write a minimal unit test to reproduce this problem, similar 
to the tests here:
TruthMaintenanceTest

Mark


On 18/09/2010 21:07, Alex Besogonov wrote:
> I've encountered a NPE in TruthMaintananceSystem:304 on retractions of
> tracked facts (because getLogicalDependencies() returns null).
>
> I hunted it down to DefaultKnowledgeHelper::setActivation() method. A
> comment there says that this was added to resolve the JBRULES-2558
> bug.
>
> My attempt to fix it is attached - instead of removing the list of
> logical dependencies, I instead track re-additions and then remove
> everything else.
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20100919/82407d99/attachment.html 


More information about the rules-dev mailing list