which version of drools does the brms uses?
am deserializing with the drools 4.0 version..
"Anstis, Michael (M.)" <manstis1@ford.com> schrieb:
Was the package serialised using a different version of Drools to which you are trying to deserialise it?
_______________________________________________hello
From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of vamshidhar reddy chitti
Sent: 17 October 2007 11:18
To: rules-users@lists.jboss.org
Subject: [rules-users] java.io.InvalidClassException: org.drools.rule.Package;local class incompatible: stream classdesc serialVersionUID = 400,local class serialVersionUID = 320
am using the binary package from drools brms and tying to execute
BinaryRuleBaseLoader loader = new BinaryRuleBaseLoader();
loader.addPackage( DroolsTest.class.getResourceAsStream( "com.valuemomentum.ipru.camscontract.model.pkg" ) );
RuleBase rb = loader.getRuleBase();
but i get the following errors,
org.drools.RuntimeDroolsException: java.io.InvalidClassException: org.drools.rule.Package; local class incompatible: stream classdesc serialVersionUID = 400, local class serialVersionUID = 320
at org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:100)
at org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:67)
at com.sample.DroolsTest.readRule(DroolsTest.java:59)
at com.sample.DroolsTest.main(DroolsTest.java:28)
Caused by: java.io.InvalidClassException: org.drools.rule.Package; local class incompatible: stream classdesc serialVersionUID = 400, local class serialVersionUID = 320
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:82)
... 3 more
i tried replacing mvel jar file with mvel-snapshot jar file...but same error...
anyone has idea.
how to use absolute path in my application instead downloading binary package and using.
thanx in advance.
vamshi
Yahoo! Clever - Sie haben Fragen? Yahoo! Nutzer antworten Ihnen.
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users