Hi,
your (b) problem looks like compatibility problems between guvnor version and drools-core version used by your knowledge agent. Which versions are you using?

Best, 

On Thu, Jul 1, 2010 at 2:18 AM, Ike <iokafo@gmail.com> wrote:
Jeff

Can't thank you enough. The explanation you gave cleared a number of cobwebs.
I got all the jars in and do not get anymore class errors however I
encountered two more issues

(1) Some of the rules validate succesfully within guvnor but I have a couple
of 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 "unqualified type in strict mode for
getDirection". 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
 eval(((Class1)Map[2L]).getDirection == ((Class1)Map[3L]).getDirection) but
the errors only got worse.

Is there a resolution for this "unqualified type in strict mode" error?

I should also mention that I get no such error when working with the .DRL file
in my java code outside guvnor.


(b) 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

RuleAgent agent = RuleAgent.newRuleAgent("guvnor.properties");
RuleBase masterRuleBase = agent.getRuleBase();

guvnor.properties contains only one entry url = http://localhost:8080/drools-
guvnor/org.drools.guvnor.Guvnor/package/SomePackage.drools/LATEST

I got this url from the guvnor deployment page

The error I got when I ran this was "java.io.InvalidCastException:
org.drools.rule.DialectRuntimeRegistry; local class incompatible: stream
classdesc serailVersionUID= 5308493362083281112, local class serialVersionID =
510
Is there a compatibility issue between Guvnor and JBOSS 4.2.3

Thanks




_______________________________________________
rules-users mailing list
https://lists.jboss.org/mailman/listinfo/rules-users



--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti