<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi,<div>your (b) problem looks like compatibility problems between guvnor version and drools-core version used by your knowledge agent. Which versions are you using?</div>

<div><br></div><div>Best, </div></span><br><div class="gmail_quote">2010/7/1 Ike Okafo <span dir="ltr">&lt;<a href="mailto:iokafo@gmail.com">iokafo@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hi</div>
<div> </div>
<div>I got a great answer to my last post and will like to say thank you to Jeffrey Schneller. I hope to contribute to the</div>
<div>community once my drools knowledge base grows</div>
<div> </div>
<div>I have two quick follow up questions to my last post</div>
<div> </div>
<div>(1) I imported some rules validate which succesfully within guvnor but I have a couple of  other rules that use maps on which I am getting errors. The map contains objects of a certain type Class1 and the map key is a Long (e.g 1L, 2L). The statement causing the error is of the format eval(Map[1L].getDirection== Map[2L].getDirection). The error I get is &quot;unqualified type in strict mode for getDirection&quot;. I scoured the forums for a solution and learnt that I need to cast the object from the map to its specific type before calling any method of the class and so I changed it to <br>


 eval(((Class1)Map[2L]).getDirection == ((Class1)Map[3L]).getDirection) but the errors only got worse.</div>
<div>Is there a resolution for this &quot;unqualified type in strict mode&quot; error?</div>
<div>I should also mention that I get no such error when working with the .DRL file in my java code outside guvnor.</div>
<div><br>(2) The second issue I am dealing with involves those rules that validated in guvnor (I am running guvnor under JBOSS 4.2.3). I validated and built the package successfully (I did not create a snapshot for deployment). I then tried to reference the guvnor package to build the rulebase using the following java code</div>



<div>RuleAgent agent = RuleAgent.newRuleAgent(&quot;guvnor.properties&quot;);<br>RuleBase masterRuleBase = agent.getRuleBase();<br> <br>guvnor.properties contains only one entry url = <a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST" target="_blank">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST</a><br>


I got this url from the guvnor deployment page</div>
<div>The error I got when I ran this was &quot;java.io.InvalidCastException: org.drools.rule.DialectRuntimeRegistry; local class incompatible: stream classdesc serailVersionUID= 5308493362083281112, local class serialVersionID = 510<br>


Is there a compatibility issue between Guvnor and JBOSS 4.2.3</div>
<div>Thanks<br><br></div>
<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><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>