Bug 845000 - ClassCastException in RuleTerminalNode.retractLeftTuple()
ClassCastException in RuleTerminalNode.retractLeftTuple()
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion) (Show other bugs)
BRMS 5.3.0.GA
Unspecified Unspecified
urgent Severity high
: ---
: ---
Assigned To: Mario Fusco
Martin Vecera
Depends On:
Blocks: 852881 843917
  Show dependency treegraph
Reported: 2012-08-01 08:41 EDT by Alessandro Lazarotti
Modified: 2015-03-12 06:21 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 852881 (view as bug list)
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker JBRULES-3590 Major Resolved ClassCastException in RuleTerminalNode.retractLeftTuple() 2016-05-19 06:38 EDT

  None (edit)
Description Alessandro Lazarotti 2012-08-01 08:41:21 EDT
ruleflow-group + lock-on-activate may cause a ClassCastException.

import org.drools.Person;
import org.drools.Cheese;
rule R1
ruleflow-group "group1"
lock-on-active true
   $p : Person()
   update ($p);
rule R2
ruleflow-group "group1"
lock-on-active true
   $p : Person( name == null )
   forall ( Cheese ( type == "cheddar" ))

Exception executing consequence for rule "R1" in defaultpkg: java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.drools.spi.Activation
	at org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287)
	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:1212)
	at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1446)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:710)
	at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:674)
	at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:230)
Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.drools.spi.Activation
	at org.drools.reteoo.RuleTerminalNode.retractLeftTuple(RuleTerminalNode.java:309)
	at org.drools.reteoo.SingleLeftTupleSinkAdapter.doPropagateRetractLeftTuple(SingleLeftTupleSinkAdapter.java:224)
	at org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateRetractLeftTuple(SingleLeftTupleSinkAdapter.java:98)
	at org.drools.reteoo.NotNode.retractLeftTuple(NotNode.java:216)
	at org.drools.reteoo.LeftTupleSource.doModifyLeftTuple(LeftTupleSource.java:286)
Comment 3 Iva Zakova 2012-08-06 03:24:33 EDT
verified in patch 843917

Note You need to log in before you can comment on or make changes to this bug.