[
https://issues.jboss.org/browse/JBRULES-3387?page=com.atlassian.jira.plug...
]
Geoffrey De Smet resolved JBRULES-3387.
---------------------------------------
Resolution: Done
Fixed like this:
{code}
java.lang.IllegalStateException: Phase localSearch started with an uninitialized Solution.
First initialize the Solution. For example, run a phase constructionHeuristic first.
at
org.drools.planner.core.localsearch.DefaultLocalSearchSolverPhase.phaseStarted(DefaultLocalSearchSolverPhase.java:96)
~[classes/:na]
at
org.drools.planner.core.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:51)
~[classes/:na]
at org.drools.planner.core.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:181)
~[classes/:na]
at org.drools.planner.core.solver.DefaultSolver.solve(DefaultSolver.java:150)
~[classes/:na]
at
org.drools.planner.examples.common.business.SolutionBusiness.solve(SolutionBusiness.java:261)
~[classes/:na]
at
org.drools.planner.examples.common.swingui.SolverAndPersistenceFrame$SolveAction$1.run(SolverAndPersistenceFrame.java:244)
~[classes/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [na:1.6.0_26]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_26]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
{code}
Planner: NullPointerException on
calculateTimeGradient(HardAndSoftScoreDefinition.java:73) should have a better exception
message: a construction heuristic is missing
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-3387
URL:
https://issues.jboss.org/browse/JBRULES-3387
Project: Drools
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: drools-planner
Reporter: Geoffrey De Smet
Assignee: Geoffrey De Smet
Fix For: 5.4.0.CR1
{code}
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)
{code}
See
http://stackoverflow.com/questions/9287675/uninitialized-planning-value-e...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira