[
https://issues.jboss.org/browse/JBRULES-3532?page=com.atlassian.jira.plug...
]
Geoffrey De Smet edited comment on JBRULES-3532 at 9/19/12 5:26 AM:
--------------------------------------------------------------------
When trying to reproduce with 5.5.0-SNAPSHOT (almost Beta1), the benchmarks completes and
*the benchmarker report is correctly written* (so this issue does no longer happen).
I do get some failed benchmarks, due to JBRULES-3462, but that's a different issue:
{code}
2012-09-19 11:22:02,552 [main] INFO Benchmarking started: solverBenchmarkList size (3),
parallelBenchmarkCount (1).
2012-09-19 11:22:04,264 [pool-2-thread-1] INFO Solving started: time spend (117), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,264 [pool-2-thread-1] INFO Solving ended: time spend (117), best
score (null), average calculate count per second (0).
2012-09-19 11:22:04,633 [pool-2-thread-1] INFO Solving started: time spend (37), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,633 [pool-2-thread-1] INFO Solving ended: time spend (37), best score
(null), average calculate count per second (0).
2012-09-19 11:22:04,936 [pool-2-thread-1] INFO Solving started: time spend (28), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,936 [pool-2-thread-1] INFO Solving ended: time spend (28), best score
(null), average calculate count per second (0).
2012-09-19 11:22:05,344 [pool-2-thread-1] INFO Solving started: time spend (91), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:05,344 [pool-2-thread-1] INFO Solving ended: time spend (91), best score
(null), average calculate count per second (0).
2012-09-19 11:22:05,807 [pool-2-thread-1] INFO Solving started: time spend (139), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:05,807 [pool-2-thread-1] INFO Solving ended: time spend (139), best
score (null), average calculate count per second (0).
2012-09-19 11:22:06,206 [pool-2-thread-1] INFO Solving started: time spend (124), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:06,206 [pool-2-thread-1] INFO Solving ended: time spend (124), best
score (null), average calculate count per second (0).
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark (comp02_phase_cached) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark
(comp02_entityTabu10-custom-phase-shuffled) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark (comp01_phase_cached) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark (comp02_jit) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark (comp01_jit) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark
(comp01_entityTabu10-custom-phase-shuffled) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
Exception in thread "main" java.lang.IllegalStateException: Benchmarking failed:
failureCount (6). The exception of the firstFailureSingleBenchmark (comp02_phase_cached)
is chained.
2012-09-19 11:22:07,898 [main] INFO Benchmarking failed: time spend (3734), failureCount
(6), statistic html overview
(/home/gdesmet/projects/jboss/just-drools-planner/drools-planner/drools-planner-examples/local/data/curriculumcourse/2012-09-19_112202/index.html).
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmarkingEnded(DefaultPlannerBenchmark.java:299)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:168)
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
... 7 more
{code}
Resolving this issue as cannot reproduce. *Please reopen if you can reproduce the bug that
causes the benchmark report not to be written.*
was (Author: ge0ffrey):
When trying to reproduce, I get this:
{code}
2012-09-19 11:22:02,552 [main] INFO Benchmarking started: solverBenchmarkList size (3),
parallelBenchmarkCount (1).
2012-09-19 11:22:04,264 [pool-2-thread-1] INFO Solving started: time spend (117), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,264 [pool-2-thread-1] INFO Solving ended: time spend (117), best
score (null), average calculate count per second (0).
2012-09-19 11:22:04,633 [pool-2-thread-1] INFO Solving started: time spend (37), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,633 [pool-2-thread-1] INFO Solving ended: time spend (37), best score
(null), average calculate count per second (0).
2012-09-19 11:22:04,936 [pool-2-thread-1] INFO Solving started: time spend (28), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:04,936 [pool-2-thread-1] INFO Solving ended: time spend (28), best score
(null), average calculate count per second (0).
2012-09-19 11:22:05,344 [pool-2-thread-1] INFO Solving started: time spend (91), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:05,344 [pool-2-thread-1] INFO Solving ended: time spend (91), best score
(null), average calculate count per second (0).
2012-09-19 11:22:05,807 [pool-2-thread-1] INFO Solving started: time spend (139), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:05,807 [pool-2-thread-1] INFO Solving ended: time spend (139), best
score (null), average calculate count per second (0).
2012-09-19 11:22:06,206 [pool-2-thread-1] INFO Solving started: time spend (124), score
(null), new best score (null), random seed (0).
2012-09-19 11:22:06,206 [pool-2-thread-1] INFO Solving ended: time spend (124), best
score (null), average calculate count per second (0).
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark (comp02_phase_cached) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark
(comp02_entityTabu10-custom-phase-shuffled) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,280 [main] ERROR The singleBenchmark (comp01_phase_cached) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark (comp02_jit) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark (comp01_jit) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
2012-09-19 11:22:06,281 [main] ERROR The singleBenchmark
(comp01_entityTabu10-custom-phase-shuffled) failed.
java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
[classes/:na]
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
[classes/:na]
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
[classes/:na]
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
~[na:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) [idea_rt.jar:na]
Exception in thread "main" java.lang.IllegalStateException: Benchmarking failed:
failureCount (6). The exception of the firstFailureSingleBenchmark (comp02_phase_cached)
is chained.
2012-09-19 11:22:07,898 [main] INFO Benchmarking failed: time spend (3734), failureCount
(6), statistic html overview
(/home/gdesmet/projects/jboss/just-drools-planner/drools-planner/drools-planner-examples/local/data/curriculumcourse/2012-09-19_112202/index.html).
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmarkingEnded(DefaultPlannerBenchmark.java:299)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:168)
at
org.drools.planner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:28)
at
org.drools.planner.examples.curriculumcourse.app.CurriculumCourseBenchmarkApp.main(CurriculumCourseBenchmarkApp.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.IllegalStateException: Score is null. TODO fix JBRULES-3462.
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.runSingleBenchmarks(DefaultPlannerBenchmark.java:246)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:167)
... 7 more
{code}
NPE in DefaultHardAndSoftScore.compareTo()
------------------------------------------
Key: JBRULES-3532
URL:
https://issues.jboss.org/browse/JBRULES-3532
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-planner
Affects Versions: 5.4.0.Final
Reporter: Martin Vecera
Assignee: Geoffrey De Smet
Fix For: 5.5.0.Beta1
When running a benchmark on a very slow machine (virtual machine), hard and soft part of
the score might remain uninitialized for long time (might be related to JBRULES-3413).
This discovered an issue in the compareTo() method.
Caused by: java.lang.NullPointerException
at
org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo(DefaultHardAndSoftScore.java:125)
at
org.drools.planner.core.score.buildin.hardandsoft.DefaultHardAndSoftScore.compareTo(DefaultHardAndSoftScore.java:27)
at
org.drools.planner.benchmark.core.ProblemBenchmark.determineWinningResult(ProblemBenchmark.java:180)
at
org.drools.planner.benchmark.core.ProblemBenchmark.benchmarkingEnded(ProblemBenchmark.java:173)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmarkingEnded(DefaultPlannerBenchmark.java:201)
at
org.drools.planner.benchmark.core.DefaultPlannerBenchmark.benchmark(DefaultPlannerBenchmark.java:135)
at org.drools.planner.examples.tournaments.Benchmark.main(Benchmark.java:25)
... 6 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira