<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi All,</DIV>
<DIV>&nbsp;&nbsp; I am getting the following eror when i use "from collect" key word. Help me to resolve this.Thanks in advance to all.</DIV>
<DIV>&nbsp;</DIV>
<DIV>my rule is....</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;Rule "test"</DIV>
<DIV>when </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<FONT color=#0000ff> $inputObj : QuotationSearchFormObject( extensions != null )<BR>&nbsp;&nbsp; QuotationLineExt( $locFrmLabel:label == 'Location From' , value != null , $locFromValue : value ) from $inputObj.getExtensions()<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#ff007f>i : ArrayList( size &gt; 0&nbsp; ) from collect ( QuotationLine(&nbsp; extensions&nbsp; != null ) from $totList);</FONT></DIV>
<DIV><FONT color=#0000ff>then</FONT></DIV>
<DIV><FONT color=#0000ff>&nbsp;System.out.println("success");</FONT></DIV>
<DIV><FONT color=#0000ff>end </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#ff007f>Error marked in red colour line.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>java.lang.ClassCastException: org.drools.reteoo.CollectNode$CollectMemory cannot be cast to org.drools.reteoo.FromNode$FromMemory<BR>&nbsp;at org.drools.reteoo.FromNode.assertLeftTuple(FromNode.java:93)<BR>&nbsp;at org.drools.reteoo.CompositeLeftTupleSinkAdapter.doPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:145)<BR>&nbsp;at org.drools.reteoo.CompositeLeftTupleSinkAdapter.createAndPropagateAssertLeftTuple(CompositeLeftTupleSinkAdapter.java:57)<BR>&nbsp;at org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:142)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks </DIV>
<DIV>Dilip.</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>