java.lang.ClassCastException

org.chocosolver.solver.variables.events.IntEventType cannot be cast to org.chocosolver.solver.variables.events.RealEventType

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via GitHub by JiiTee
    ,
  • Stack trace

    • java.lang.ClassCastException: org.chocosolver.solver.variables.events.IntEventType cannot be cast to org.chocosolver.solver.variables.events.RealEventType at org.chocosolver.solver.variables.impl.scheduler.RealEvtScheduler.init(RealEvtScheduler.java:39) at org.chocosolver.solver.propagation.hardcoded.SevenQueuesPropagatorEngine.onVariableUpdate(SevenQueuesPropagatorEngine.java:327) at org.chocosolver.solver.variables.impl.AbstractVariable.notifyPropagators(AbstractVariable.java:313) at org.chocosolver.solver.variables.impl.AbstractVariable.notifyViews(AbstractVariable.java:327) at org.chocosolver.solver.variables.impl.AbstractVariable.notifyPropagators(AbstractVariable.java:314) at org.chocosolver.solver.variables.impl.BitsetArrayIntVarImpl.instantiateTo(BitsetArrayIntVarImpl.java:391) at org.chocosolver.solver.search.strategy.assignments.DecisionOperator$1.apply(DecisionOperator.java:71) at org.chocosolver.solver.search.strategy.assignments.DecisionOperator$1.apply(DecisionOperator.java:67) at org.chocosolver.solver.search.strategy.decision.IntDecision.apply(IntDecision.java:78) at org.chocosolver.solver.search.strategy.decision.DecisionPath.apply(DecisionPath.java:106) at org.chocosolver.solver.search.loop.propagate.PropagateBasic.execute(PropagateBasic.java:46) at org.chocosolver.solver.Solver.searchLoop(Solver.java:298) at org.chocosolver.solver.Solver.solve(Solver.java:265) at chocoPropagationTest.ChocoFloatCalc02.main(Unknown Source)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.