ClassCastException: org.drools.reteoo.CollectNode$CollectMemory cannot be cast to
org.drools.reteoo.FromNode$FromMemory
-----------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2839
URL:
https://issues.jboss.org/browse/JBRULES-2839
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.0.1.FINAL
Reporter: Christian Jacinto
Assignee: Mark Proctor
Posting a similar case retrieved from
http://comments.gmane.org/gmane.comp.java.drools.user/19739:
Rule:
rule "test"
when
$inputObj : QuotationSearchFormObject( extensions != null )
QuotationLineExt( $locFrmLabel:label == 'Location From' , value != null ,
$locFromValue : value ) from $inputObj.getExtensions()
i : ArrayList( size > 0 ) from collect ( QuotationLine( extensions != null )
from $totList);
then
System.out.println("success");
end
Stacktrace:
java.lang.ClassCastException: org.drools.reteoo.CollectNode$CollectMemory cannot be cast
to org.drools.reteoo.FromNode$FromMemory
at org.drools.reteoo.FromNode.assertLeftTuple(FromNode.java:93)
at
org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:145)
at
org.drools.reteoo.CompositeLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:57)
at
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:142)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:360)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:185)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:146)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1046)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1001)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:788)
at
org.drools.process.command.InsertElementsCommand.execute(InsertElementsCommand.java:40)
at
org.drools.process.command.InsertElementsCommand.execute(InsertElementsCommand.java:12)
at org.drools.runtime.impl.BatchExecutionImpl.execute(BatchExecutionImpl.java:23)
at org.drools.runtime.impl.BatchExecutionImpl.execute(BatchExecutionImpl.java:9)
at
org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:225)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira