For the record:
In your solverConfig, you're missing a |<constructionHeuristic>| section
(use FIRST_FIT) before the |<localSearch>| section, see manual for more
information or most of the examples.
I 'll file a JIRA to get a better exception message when this occurs.
Op 14-02-12 15:39, Nurlan schreef:
Is it possible setting planning entity with uninitialized planning value into
solution?
if it is possible, then how? :)
plz, help me :)
When I execute my code with not null planning variables everything work
fine, but when i execute without setting planning variables I have
[Exception in thread "main" java.lang.NullPointerException]
------------------------
2012-02-14 17:32:08,119 [main] INFO Solver started: time spend (0), score
(null), new best score (null), random seed (0).
Exception in thread "main" java.lang.NullPointerException
at
org.drools.planner.core.score.definition.HardAndSoftScoreDefinition.calculateTimeGradient(HardAndSoftScoreDefinition.java:73)
at
org.drools.planner.core.score.definition.HardAndSoftScoreDefinition.calculateTimeGradient(HardAndSoftScoreDefinition.java:25)
at
org.drools.planner.core.termination.ScoreAttainedTermination.calculateSolverTimeGradient(ScoreAttainedTermination.java:52)
at
org.drools.planner.core.termination.OrCompositeTermination.calculateSolverTimeGradient(OrCompositeTermination.java:70)
at
org.drools.planner.core.termination.OrCompositeTermination.calculateSolverTimeGradient(OrCompositeTermination.java:70)
at
org.drools.planner.core.termination.PhaseToSolverTerminationBridge.calculatePhaseTimeGradient(PhaseToSolverTerminationBridge.java:49)
at
org.drools.planner.core.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:55)
at
org.drools.planner.core.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:166)
at
org.drools.planner.core.solver.DefaultSolver.solve(DefaultSolver.java:138)
at kz.bee.drools.planner.dating.DatingMain.start(DatingMain.java:58)
at kz.bee.drools.planner.dating.DatingMain.main(DatingMain.java:38)
--
View this message in context:
http://drools.46999.n3.nabble.com/uninitialized-planning-value-error-tp3743831p3743831.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
With kind regards,
Geoffrey De Smet
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users