[rules-users] [Planner] CachedMoveFactory drive to Corrupted undo move

Geoffrey De Smet ge0ffrey.spam at gmail.com
Thu Nov 10 08:45:56 EST 2011


Try with <environmentMode> set to TRACE.
It might fail-faster with a clearer message about what's going wrong.

Op 10-11-11 14:18, npiedeloup schreef:
> Thanks for your response.
>
> I'have juste test you proposition of method on assigment, and i've got the
> same error.
> I also test with a simplier rule set :
>
> Juste 1 rule : (and the two for scoreCalculator of course)
> rule "notPlannified"
>   when
>              $assigment: Assigment()
> then
>              insertLogical(new IntConstraintOccurrence("notPlannified",
> ConstraintType.NEGATIVE_SOFT, 50, $assigment));
>
> I desactivate the solverScope.calculateScoreFromWorkingMemory(); call in UI,
> juste in case.
>
> I check my cloneSolution : i juste clone the assigment object and copy the
> score.
> equals and hashcode are ok on assigment and move object.
> No overrided equals and hashcode on other facts, but since i don't recreate
> nor clone them, i think it's unnecessary. (In fact i don't really understand
> where hashcode and equals was really necessary since the working memory keep
> same instances).
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Planner-CachedMoveFactory-drive-to-Corrupted-undo-move-tp3495070p3496696.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
>

-- 
With kind regards,
Geoffrey De Smet





More information about the rules-users mailing list