Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3695

Rule update - java.lang.ClassCastException: org.drools.reteoo.WindowTupleList cannot be cast to org.drools.common.InternalFactHandle

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0.Final
    • Fix Version/s: None
    • Component/s: drools-core (expert)
    • Labels:
      None

      Description

      The following exception occurs if a rule containing a sliding time window pattern was retracted and asserted / updated again (see attached example).
      This is a common scenario in our AAL system, where users repeatedly generate and update rules (via a web GUI).

      java.lang.ClassCastException: org.drools.reteoo.WindowTupleList cannot be cast to org.drools.common.InternalFactHandle
      at org.drools.reteoo.WindowNode.updateSink(WindowNode.java:301)
      at org.drools.reteoo.BetaNode.attach(BetaNode.java:408)
      at org.drools.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:145)
      at org.drools.reteoo.builder.GroupElementBuilder$NotBuilder.build(GroupElementBuilder.java:261)
      at org.drools.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:70)
      at org.drools.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:112)
      at org.drools.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:70)
      at org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:161)
      at org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:134)
      at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:113)
      at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:445)
      at org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:952)
      at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:629)
      at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:472)
      at org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:149)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                jpullmann Jaroslav Pullmann
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: