<div dir="ltr">Never mind, upgraded to 4.0.7 and forgot to upgrade mvel...<br><br>[]s<br><br><div class="gmail_quote">On Wed, Aug 20, 2008 at 2:33 PM, Vinicius Carvalho <span dir="ltr">&lt;<a href="mailto:viniciusccarvalho@gmail.com">viniciusccarvalho@gmail.com</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;"><div dir="ltr">Hello there! I&#39;m getting an classcastexception when I try to insert facts on my RuleAgent:<br>
<br>Properties props = new Properties();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; props.put(&quot;url&quot;, &quot;<a href="http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.acme.rules/latest" target="_blank">http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.acme.rules/latest</a>&quot;);<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; props.put(&quot;newInstance&quot;, &quot;true&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; props.put(&quot;name&quot;,&quot;testagent&quot;);<br>RuleAgent agent = RuleAgent.newRuleAgent(props);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StatefulSession session = agent.getRuleBase().newStatefulSession();<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session.insert(fact);<br><br>The error happens on the session.insert method. It also happens inside my Seam application When I try to insert the facts on the working memory. My drools package contains the model that I&#39;ve extracted from my seam application. <br>

If I run it using a local drl file, it works fine. This problem only happens with the rule agent<br><br>Could someone give me a hand on this?<br><br>Regards<br clear="all"><br>-- <br>&quot;In a world without fences and walls, who needs Gates and Windows?&quot;<br>


</div>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;In a world without fences and walls, who needs Gates and Windows?&quot;<br>
</div>