<font size="2"><font face="sans-serif">Obviously, it should be  </font></font><font face="sans-serif" size="2">for (int i=0; i &lt; facts.length;i++), right?</font><br><br><div class="gmail_quote">2011/9/23 Manohar Kokkula <span dir="ltr">&lt;<a href="mailto:manohar.kokkula@tcs.com">manohar.kokkula@tcs.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font face="sans-serif" size="2">Hi,<br>
<br>
I am trying to execute Banking Tutorial Example given in Drools expert(</font><a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769" target="_blank"><font color="blue" face="sans-serif" size="2"><u>http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769</u></font></a><font face="sans-serif" size="2">),but
im getting following error,<br>
<br>
Exception in thread &quot;main&quot; java.lang.ClassCastException: java.util.ArrayList
cannot be cast to org.hibernate.mapping.Collection<br>
at com.sample.RuleRunner.runRules(RuleRunner.java:32)<br>
at com.sample.Example1.main(Example1.java:5)</font>
<br>
<br><font face="sans-serif" size="2">And when i try to resolve this i am
getting another error:</font>
<br>
<br><font face="sans-serif" size="2">java.lang.ArrayIndexOutOfBoundsException:
0</font>
<br><font face="sans-serif" size="2">        at
com.code.RuleRunner.runRules(RuleRunner.java:45)</font>
<br><font face="sans-serif" size="2">        at
com.code.Example1.main(Example1.java:5)<br>
</font>
<br><font face="sans-serif" size="2"><b><u>Code snippet :</u></b></font>
<br>
<br><font face="sans-serif" size="2"> for (int i=0; i &lt;=facts.length;i++)
</font>
<br><font face="sans-serif" size="2">        {</font>
<br><font face="sans-serif" size="2">           
System.out.println(&quot;222&quot;);</font>
<br><font face="sans-serif" size="2">           
    Object fact = facts[i]; <b>//The error is for this
line of code</b></font>
<br><font face="sans-serif" size="2">         </font>
<br><font face="sans-serif" size="2">    </font>
<br><font face="sans-serif" size="2">           System.out.println(
&quot;Inserting fact: &quot; + fact );</font>
<br><font face="sans-serif" size="2">           ksession.insert(fact);</font>
<br><font face="sans-serif" size="2">           </font>
<br><font face="sans-serif" size="2">           System.out.println(&quot;333&quot;);</font>
<br><font face="sans-serif" size="2">        }</font>
<br>
<br>
<br><font face="sans-serif" size="2"><br>
could any body help me on this.<br>
</font>
<br><font face="sans-serif" size="2"><br>
Manohar Kokkula<br>
Mailto: <a href="mailto:manohar.kokkula@tcs.com" target="_blank">manohar.kokkula@tcs.com</a><br>
</font><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>