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, <br><br><div class="gmail_quote">
On Thu, Jul 1, 2010 at 2:18 AM, Ike <span dir="ltr"><<a href="mailto:iokafo@gmail.com">iokafo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Jeff<br>
<br>
Can't thank you enough. The explanation you gave cleared a number of cobwebs.<br>
I got all the jars in and do not get anymore class errors however I<br>
encountered two more issues<br>
<br>
(1) Some of the rules validate succesfully within guvnor but I have a couple<br>
of rules that use maps on which I am getting errors. The map contains objects<br>
of a certain type Class1 and the map key is a Long (e.g 1L, 2L). The statement<br>
causing the error is of the format eval(Map[1L].getDirection== Map<br>
[2L].getDirection). The error I get is "unqualified type in strict mode for<br>
getDirection". I scoured the forums for a solution and learnt that I need to<br>
cast the object from the map to its specific type before calling any method of<br>
the class and so I changed it to<br>
eval(((Class1)Map[2L]).getDirection == ((Class1)Map[3L]).getDirection) but<br>
the errors only got worse.<br>
<br>
Is there a resolution for this "unqualified type in strict mode" error?<br>
<br>
I should also mention that I get no such error when working with the .DRL file<br>
in my java code outside guvnor.<br>
<br>
<br>
(b) The second issue I am dealing with involves those rules that validated in<br>
guvnor (I am running guvnor under JBOSS 4.2.3). I validated and built the<br>
package successfully (I did not create a snapshot for deployment). I then<br>
tried to reference the guvnor package to build the rulebase using the<br>
following java code<br>
<div class="im"><br>
RuleAgent agent = RuleAgent.newRuleAgent("guvnor.properties");<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-<br>
guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST</a><br>
</div>I got this url from the guvnor deployment page<br>
<br>
The error I got when I ran this was "java.io.InvalidCastException:<br>
org.drools.rule.DialectRuntimeRegistry; local class incompatible: stream<br>
classdesc serailVersionUID= 5308493362083281112, local class serialVersionID =<br>
510<br>
Is there a compatibility issue between Guvnor and JBOSS 4.2.3<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<div class="im"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
</div><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>