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

Benchmarker: JAXB can't write benchmarks with extra statistic types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • None
    • optaplanner-benchmark
    • None
    • Undefined
    • NEW
    • NEW

      Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 12 counts of IllegalAnnotationExceptions
      org.optaplanner.benchmark.impl.statistic.subsingle.constraintmatchtotalbestscore.ConstraintMatchTotalBestScoreSubSingleStatistic does not have a no-arg default constructor.
         this problem is related to the following location:
            at org.optaplanner.benchmark.impl.statistic.subsingle.constraintmatchtotalbestscore.ConstraintMatchTotalBestScoreSubSingleStatistic
            at private java.util.List org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult.pureSubSingleStatisticList
            at org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.SingleBenchmarkResult.subSingleBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.SolverBenchmarkResult.singleBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.SolverBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.PlannerBenchmarkResult.solverBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.PlannerBenchmarkResult
      org.optaplanner.benchmark.impl.statistic.PureSubSingleStatistic does not have a no-arg default constructor.
         this problem is related to the following location:
            at org.optaplanner.benchmark.impl.statistic.PureSubSingleStatistic
            at org.optaplanner.benchmark.impl.statistic.subsingle.constraintmatchtotalbestscore.ConstraintMatchTotalBestScoreSubSingleStatistic
            at private java.util.List org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult.pureSubSingleStatisticList
            at org.optaplanner.benchmark.impl.result.SubSingleBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.SingleBenchmarkResult.subSingleBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.SolverBenchmarkResult.singleBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.SolverBenchmarkResult
            at private java.util.List org.optaplanner.benchmark.impl.result.PlannerBenchmarkResult.solverBenchmarkResultList
            at org.optaplanner.benchmark.impl.result.PlannerBenchmarkResult
      org.optaplanner.benchmark.impl.statistic.SubSingleStatistic does not have a no-arg default constructor.
      

      Commenting this out probably triggers it when it writes plannerBenchmarkResult.xml:

            <!--<problemStatisticType>BEST_SCORE</problemStatisticType>-->
            <!--<problemStatisticType>STEP_SCORE</problemStatisticType>-->
            <!--<problemStatisticType>SCORE_CALCULATION_SPEED</problemStatisticType>-->
            <!--<problemStatisticType>BEST_SOLUTION_MUTATION</problemStatisticType>-->
            <!--<problemStatisticType>MOVE_COUNT_PER_STEP</problemStatisticType>-->
            <!--<problemStatisticType>MEMORY_USE</problemStatisticType>-->
            <!--<singleStatisticType>CONSTRAINT_MATCH_TOTAL_BEST_SCORE</singleStatisticType>-->
            <!--<singleStatisticType>CONSTRAINT_MATCH_TOTAL_STEP_SCORE</singleStatisticType>-->
            <!--<singleStatisticType>PICKED_MOVE_TYPE_BEST_SCORE_DIFF</singleStatisticType>-->
            <!--<singleStatisticType>PICKED_MOVE_TYPE_STEP_SCORE_DIFF</singleStatisticType>-->
      

              rsynek@redhat.com Radovan Synek (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: