[rules-users] Score curruption exception in drools-planner-5.4.0.CR1

Geoffrey De Smet ge0ffrey.spam at gmail.com
Sat May 12 10:57:40 EDT 2012


Can you copy paste your rule someRuleId implementation ?

Op 12-05-12 00:06, Nurlan schreef:
> Hi guys!
> I have some exception and I don't know why?
> My rule *someRuleId* has weight *1*
> 2012-05-12 03:47:08,224 [main] DEBUG     Step index (570), time spend
> (115566), score (0hard/0soft), initialized planning entity
> (SomePlanningEntity [id=21, …]).
> 2012-05-12 03:47:08,465 [main] DEBUG     Step index (571), time spend
> (115807), score (0hard/0soft), initialized planning entity
> (SomePlanningEntity [id=20, …]).
> java.lang.IllegalStateException: Score corruption: the workingScore
> (-4hard/0soft) is not the uncorruptedScore (0hard/0soft):
>    The workingMemory has 4 ConstraintOccurrence(s) in excess:
>      someRuleId/NEGATIVE_HARD:[SomePlanningEntity [id=2482309, …],
> SomePlanningEntity [id=54, …]]=1
>      someRuleId/NEGATIVE_HARD:[SomePlanningEntity [id=2482309, …],
> SomePlanningEntity [id=57, …]]=1
>      someRuleId/NEGATIVE_HARD:[SomePlanningEntity [id=57, …],
> SomePlanningEntity [id=2482309, …]]=1
>      someRuleId/NEGATIVE_HARD:[SomePlanningEntity [id=54, …],
> SomePlanningEntity [id=2482309, …]]=1
>    Check the score rules who created those ConstraintOccurrences. Verify that
> each ConstraintOccurrence's causes and weight is correct.
> 	at
> org.drools.planner.core.score.director.AbstractScoreDirector.assertWorkingScore(AbstractScoreDirector.java:101)
> 	at
> org.drools.planner.core.constructionheuristic.greedyFit.decider.DefaultGreedyDecider.doMove(DefaultGreedyDecider.java:111)
> 	at
> org.drools.planner.core.constructionheuristic.greedyFit.decider.DefaultGreedyDecider.decideNextStep(DefaultGreedyDecider.java:78)
> 	at
> org.drools.planner.core.constructionheuristic.greedyFit.DefaultGreedyFitSolverPhase.solve(DefaultGreedyFitSolverPhase.java:63)
> 	at
> org.drools.planner.core.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:183)
> 	at
> org.drools.planner.core.solver.DefaultSolver.solve(DefaultSolver.java:151)
>>>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Score-curruption-exception-in-drools-planner-5-4-0-CR1-tp3981199.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