Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-40

Planner: NullPointerException on calculateTimeGradient(HardAndSoftScoreDefinition.java:73) should have a better exception message: a construction heuristic is missing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.4.0.Final
    • None
    • optaplanner-core
    • None

      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)
      

      See http://stackoverflow.com/questions/9287675/uninitialized-planning-value-error/9289834#9289834

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: