<font size=2 face="sans-serif">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 size=2 color=blue face="sans-serif"><u>http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769</u></font></a><font size=2 face="sans-serif">),but
im getting following error,<br>
<br>
Exception in thread "main" 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 size=2 face="sans-serif">And when i try to resolve this i am
getting another error:</font>
<br>
<br><font size=2 face="sans-serif">java.lang.ArrayIndexOutOfBoundsException:
0</font>
<br><font size=2 face="sans-serif"> at
com.code.RuleRunner.runRules(RuleRunner.java:45)</font>
<br><font size=2 face="sans-serif"> at
com.code.Example1.main(Example1.java:5)<br>
</font>
<br><font size=2 face="sans-serif"><b><u>Code snippet :</u></b></font>
<br>
<br><font size=2 face="sans-serif"> for (int i=0; i <=facts.length;i++)
</font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif">
System.out.println("222");</font>
<br><font size=2 face="sans-serif">
Object fact = facts[i]; <b>//The error is for this
line of code</b></font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> System.out.println(
"Inserting fact: " + fact );</font>
<br><font size=2 face="sans-serif"> ksession.insert(fact);</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> System.out.println("333");</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
could any body help me on this.<br>
</font>
<br><font size=2 face="sans-serif"><br>
Manohar Kokkula<br>
Mailto: manohar.kokkula@tcs.com<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>