<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=864552210-17102007><FONT face=Arial
color=#0000ff size=2>Was the package serialised using a different version of
Drools to which you are trying to deserialise it?</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>vamshidhar
reddy chitti<BR><B>Sent:</B> 17 October 2007 11:18<BR><B>To:</B>
rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users]
java.io.InvalidClassException: org.drools.rule.Package;local class
incompatible: stream classdesc serialVersionUID = 400,local class
serialVersionUID = 320<BR></FONT><BR></DIV>
<DIV></DIV>hello<BR>am using the binary package from drools brms and tying to
execute<BR><BR>
BinaryRuleBaseLoader loader = new
BinaryRuleBaseLoader();<BR><BR>
loader.addPackage( DroolsTest.class.getResourceAsStream(
"com.valuemomentum.ipru.camscontract.model.pkg" )
);<BR> RuleBase rb =
loader.getRuleBase();<BR><BR>but i get the following
errors,<BR>org.drools.RuntimeDroolsException: java.io.InvalidClassException:
org.drools.rule.Package; local class incompatible: stream classdesc
serialVersionUID = 400, local class serialVersionUID =
320<BR> at
org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:100)<BR>
at
org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:67)<BR>
at com.sample.DroolsTest.readRule(DroolsTest.java:59)<BR> at
com.sample.DroolsTest.main(DroolsTest.java:28)<BR>Caused by:
java.io.InvalidClassException: org.drools.rule.Package; local class
incompatible: stream classdesc serialVersionUID = 400, local class
serialVersionUID = 320<BR> at
java.io.ObjectStreamClass.initNonProxy(Unknown Source)<BR>
at java.io.ObjectInputStream.readNonProxyDesc(Unknown
Source)<BR> at
java.io.ObjectInputStream.readClassDesc(Unknown Source)<BR>
at java.io.ObjectInputStream.readOrdinaryObject(Unknown
Source)<BR> at java.io.ObjectInputStream.readObject0(Unknown
Source)<BR> at java.io.ObjectInputStream.readObject(Unknown
Source)<BR> at
org.drools.util.BinaryRuleBaseLoader.addPackage(BinaryRuleBaseLoader.java:82)<BR>
... 3 more<BR><BR><BR>i tried replacing mvel jar file with mvel-snapshot jar
file...but same error...<BR><BR>anyone has idea.<BR><BR>how to use absolute
path in my application instead downloading binary package and
using.<BR><BR>thanx in advance.<BR>vamshi<BR>
<P>
<HR SIZE=1>
<A
href="http://de.rd.yahoo.com/evt=48210/*http://de.answers.yahoo.com/;_ylc=X3oDMTEyYTEwYzVhBF9TAzIxMTQ3MTgxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU-"
target=_new>Yahoo! Clever</A> - Sie haben Fragen? Yahoo! Nutzer antworten
Ihnen. </BLOCKQUOTE></BODY></HTML>