hello
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.