Java or DRL declaration of the fact object, please? Also, are you using the HashMap<br>field of that fact in any rules, and if so, how? And, perhaps, the full stack trace?<br>-W<br><br><br><div class="gmail_quote">On 12 April 2011 14:06, hbunny <span dir="ltr">&lt;<a href="mailto:office@interdevelopments.ro">office@interdevelopments.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I have searched the forum for information on this case, but I haven&#39;t find,<br>
at least yet.<br>
I am trying to insert an object containing a HashMap, but when I call<br>
ksession.insert( fact ) method I get this error:<br>
java.lang.ClassCastException: java.util.HashMap cannot be cast to<br>
java.lang.Comparable<br>
<br>
I have searched the net for this kind of error, but it&#39;s not clear why I&#39;m<br>
getting it, especially that I am inserting with success a global HashMap.<br>
<br>
Can you help me please, it is rather urgent. Thank you in advance.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Insert-an-object-containing-a-HashMap-tp2811131p2811131.html" target="_blank">http://drools.46999.n3.nabble.com/Insert-an-object-containing-a-HashMap-tp2811131p2811131.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>