Note that there are some explanatory texts on larger screens.

plurals
  1. PODrools Planner constructionHeuristic java.lang.ClassCastException
    text
    copied!<p>I tried to initialize the solution using <strong>Drools Planner 5.4.Final</strong> Contruction Heuristic Type BEST_FIT.</p> <pre><code>&lt;constructionHeuristic&gt; &lt;constructionHeuristicType&gt;BEST_FIT&lt;/constructionHeuristicType&gt; &lt;/constructionHeuristic&gt; </code></pre> <p>The following error occurs during evaluation at runtime</p> <pre><code>java.lang.ClassCastException: org.drools.planner.config.constructionheuristic.ConstructionHeuristicSolverPhaseConfig cannot be cast to org.drools.planner.config.localsearch.LocalSearchSolverPhaseConfig </code></pre> <p>Does anybody have any hints?</p> <p>Thanks</p> <p>This is the stacktrace</p> <pre><code>com.thoughtworks.xstream.converters.ConversionException: Element constructionHeuristic of type org.drools.planner.config.constructionheuristic.ConstructionHeuristicSolverPhaseConfig is not defined as field in type org.drools.planner.config.localsearch.LocalSearchSolverPhaseConfig ---- Debugging information ---- class : org.drools.planner.config.localsearch.LocalSearchSolverPhaseConfig required-type : org.drools.planner.config.localsearch.LocalSearchSolverPhaseConfig converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter line number : 23 class[1] : org.drools.planner.config.solver.SolverConfig version : null ------------------------------- com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter: writeValueToImplicitCollection (line:399) com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter: doUnmarshal (line:330) com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter: unmarshal (line:230) com.thoughtworks.xstream.core.TreeUnmarshaller: convert (line:72) com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller: convert (line:65) com.thoughtworks.xstream.core.TreeUnmarshaller: convertAnother (line:66) com.thoughtworks.xstream.core.TreeUnmarshaller: convertAnother (line:50) com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter: doUnmarshal (line:318) com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter: unmarshal (line:230) com.thoughtworks.xstream.core.TreeUnmarshaller: convert (line:72) com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller: convert (line:65) com.thoughtworks.xstream.core.TreeUnmarshaller: convertAnother (line:66) com.thoughtworks.xstream.core.TreeUnmarshaller: convertAnother (line:50) com.thoughtworks.xstream.core.TreeUnmarshaller: start (line:134) com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy: unmarshal (line:32) com.thoughtworks.xstream.XStream: unmarshal (line:1035) com.thoughtworks.xstream.XStream: unmarshal (line:1019) com.thoughtworks.xstream.XStream: fromXML (line:895) org.drools.planner.config.XmlSolverFactory: configure (line:95) org.drools.planner.config.XmlSolverFactory: configure (line:85) org.drools.planner.config.XmlSolverFactory: configure (line:78) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload