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

Benchmark aggregator uncaught exception when CONSTRAINT_MATCH_TOTAL_BEST_SCORE used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.29.0.Final
    • 8.25.0.Final, 8.28.0.Final
    • optaplanner-benchmark
    • None
    • 2022 Week 38-40 (from Sept 19)
    • 3
    • Hide

      1. Run benchmark aggregator GUI with the benchmark report provided

      Show
      1. Run benchmark aggregator GUI with the benchmark report provided
    • NEW
    • NEW

      Uncaught exception when previously generated report was using problem statistic of type CONSTRAINT_MATCH_TOTAL_BEST_SCORE:

      Exception in thread "main" java.lang.NoSuchMethodError: org.optaplanner.benchmark.impl.statistic.subsingle.constraintmatchtotalbestscore.ConstraintMatchTotalBestScoreSubSingleStatistic.<init>()
          at com.sun.xml.bind.v2.ClassFactory.tryGetDeclaredConstructor(ClassFactory.java:115)
          at com.sun.xml.bind.v2.ClassFactory.create0(ClassFactory.java:76)
          at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.createInstance(ClassBeanInfoImpl.java:254)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.createInstance(UnmarshallingContext.java:671)
          at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:158)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:546)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:525)
          at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:45)
          at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:214)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:251)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:220)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:251)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:220)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:251)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:220)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:251)
          at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:220)
          at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:97)
          at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:80)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:341)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:322)
          at org.optaplanner.core.impl.io.jaxb.GenericJaxbIO.readOverridingNamespace(GenericJaxbIO.java:200)
          at org.optaplanner.core.impl.io.jaxb.GenericJaxbIO.readOverridingNamespace(GenericJaxbIO.java:184)
          at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.read(BenchmarkResultIO.java:93)
          at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.readPlannerBenchmarkResult(BenchmarkResultIO.java:75)
          at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.readPlannerBenchmarkResultList(BenchmarkResultIO.java:61)
          at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.initPlannerBenchmarkResultList(BenchmarkAggregatorFrame.java:241)
          at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.init(BenchmarkAggregatorFrame.java:140)
          at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.createAndDisplay(BenchmarkAggregatorFrame.java:109)
          at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.createAndDisplayFromXmlResource(BenchmarkAggregatorFrame.java:74)
          at pl.medaxtrans.pre.benchmark.BenchmarkAggregatorMy.main(BenchmarkAggregatorMy.java:8)
      Caused by: java.lang.NoSuchMethodException: org.optaplanner.benchmark.impl.statistic.subsingle.constraintmatchtotalbestscore.ConstraintMatchTotalBestScoreSubSingleStatistic.<init>()
          at java.base/java.lang.Class.getConstructor0(Class.java:3585)
          at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2754)
          at com.sun.xml.bind.v2.ClassFactory.tryGetDeclaredConstructor(ClassFactory.java:107)
          ... 31 more
      

      On the other hand the report is fine when opened with a browser with index.html.
      Also this is happening only when report was generated with CONSTRAINT_MATCH_TOTAL_BEST_SCORE single statistic type on.

      I attach the report. I don't think the benchmark config has anything to do with it. As the documentation states it reads only benchmark dir, which is correct (there would be a different error) and benchmark report which is default with locale pl_PL

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              michaldudkiewicz Michał Dudkiewicz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: