java.lang.ClassCastException: org.drools.core.common.DefaultFactHandle cannot be cast to org.drools.core.common.EventFactHandle

Google Groups | ianEve | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Rule evaluation in Stream Mode (CEP)

    Google Groups | 8 months ago | ianEve
    java.lang.ClassCastException: org.drools.core.common.DefaultFactHandle cannot be cast to org.drools.core.common.EventFactHandle

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.drools.core.common.DefaultFactHandle cannot be cast to org.drools.core.common.EventFactHandle

      at org.drools.core.rule.VariableRestriction$LeftEndRightStartContextEntry.getTimestampFromTuple()
    2. Drools :: Core
      StatefulKnowledgeSessionImpl.fireUntilHalt
      1. org.drools.core.rule.VariableRestriction$LeftEndRightStartContextEntry.getTimestampFromTuple(VariableRestriction.java:589)
      2. org.drools.core.rule.VariableRestriction$TimestampedContextEntry.updateFromTuple(VariableRestriction.java:512)
      3. org.drools.core.common.DoubleBetaConstraints.updateFromTuple(DoubleBetaConstraints.java:80)
      4. org.drools.core.phreak.PhreakNotNode.doLeftInserts(PhreakNotNode.java:109)
      5. org.drools.core.phreak.PhreakNotNode.doNode(PhreakNotNode.java:86)
      6. org.drools.core.phreak.RuleNetworkEvaluator.switchOnDoBetaNode(RuleNetworkEvaluator.java:524)
      7. org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:505)
      8. org.drools.core.phreak.RuleNetworkEvaluator.evalNode(RuleNetworkEvaluator.java:341)
      9. org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:301)
      10. org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:136)
      11. org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:94)
      12. org.drools.core.phreak.RuleExecutor.reEvaluateNetwork(RuleExecutor.java:194)
      13. org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:73)
      14. org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1007)
      15. org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1350)
      16. org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1269)
      17. org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1345)
      18. org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1324)
      18 frames
    3. de.myProject.cep
      CepHeartbeatExample.main
      1. de.myProject.cep.run.CepHeartbeatExample.main(CepHeartbeatExample.java:25)
      1 frame