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

Benchmark aggregator fails due to XStream security exception (regression)

XMLWordPrintable

    • NEW
    • NEW

      Exception in thread "main" java.lang.IllegalArgumentException: Failed reading plannerBenchmarkResultFile (local/data/cloudbalancing/2014-03-21_215643_BF_BaB/plannerBenchmarkResult.xml).
      	at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.readPlannerBenchmarkResult(BenchmarkResultIO.java:108)
      	at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.readPlannerBenchmarkResultList(BenchmarkResultIO.java:86)
      	at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.initPlannerBenchmarkResultList(BenchmarkAggregatorFrame.java:230)
      	at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.init(BenchmarkAggregatorFrame.java:130)
      	at org.optaplanner.benchmark.impl.aggregator.swingui.BenchmarkAggregatorFrame.createAndDisplay(BenchmarkAggregatorFrame.java:97)
      	at org.optaplanner.examples.common.app.CommonBenchmarkApp.buildAndBenchmark(CommonBenchmarkApp.java:71)
      	at org.optaplanner.examples.cloudbalancing.optional.benchmark.CloudBalancingBenchmarkApp.main(CloudBalancingBenchmarkApp.java:24)
      Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: org.optaplanner.benchmark.impl.result.PlannerBenchmarkResult
      	at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
      	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
      	at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466)
      	at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)
      	at org.optaplanner.benchmark.impl.result.BenchmarkResultIO.readPlannerBenchmarkResult(BenchmarkResultIO.java:100)
      	... 6 more
      

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

                Created:
                Updated:
                Resolved: