[rules-users] Re: ClassCastException using RuleAgent

Vinicius Carvalho viniciusccarvalho at gmail.com
Wed Aug 20 14:13:31 EDT 2008


Never mind, upgraded to 4.0.7 and forgot to upgrade mvel...

[]s

On Wed, Aug 20, 2008 at 2:33 PM, Vinicius Carvalho <
viniciusccarvalho at gmail.com> wrote:

> Hello there! I'm getting an classcastexception when I try to insert facts
> on my RuleAgent:
>
> Properties props = new Properties();
>         props.put("url", "
> http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.acme.rules/latest
> ");
>         props.put("newInstance", "true");
>         props.put("name","testagent");
> RuleAgent agent = RuleAgent.newRuleAgent(props);
>         StatefulSession session = agent.getRuleBase().newStatefulSession();
>         session.insert(fact);
>
> 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've extracted from my seam
> application.
> If I run it using a local drl file, it works fine. This problem only
> happens with the rule agent
>
> Could someone give me a hand on this?
>
> Regards
>
> --
> "In a world without fences and walls, who needs Gates and Windows?"
>



-- 
"In a world without fences and walls, who needs Gates and Windows?"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080820/d9f595df/attachment.html 


More information about the rules-users mailing list