Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-881

ClassCastException when kcontainer.updateToVersion() with sliding window rule running

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.3.0.CR2
    • 6.3.0.CR1
    • core engine
    • None

      When you call kcontainer.updateToVersion() while running sliding window rules, you will the following Exception.

      Exception in thread "pool-23-thread-2" java.lang.ClassCastException: org.drools.core.reteoo.PathMemory cannot be cast to org.drools.core.reteoo.WindowNode$WindowMemory
      	at org.drools.core.reteoo.WindowNode.retractRightTuple(WindowNode.java:189)
      	at org.drools.core.reteoo.ObjectTypeNode.doRetractObject(ObjectTypeNode.java:325)
      	at org.drools.core.reteoo.ObjectTypeNode.retractObject(ObjectTypeNode.java:317)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl$WorkingMemoryReteExpireAction.execute(StatefulKnowledgeSessionImpl.java:1770)
      	at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:96)
      	at org.drools.core.phreak.SynchronizedPropagationList.flush(SynchronizedPropagationList.java:69)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.flushPropagations(StatefulKnowledgeSessionImpl.java:2007)
      	at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1289)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1306)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1293)
      	at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1272)
      	at com.sample.CallKjarTest$2.run(CallKjarTest.java:67)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

              mfusco@redhat.com Mario Fusco
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: