Yes - definitely I am using the same version otherwise I'd have exception in every transaction. But I am getting this very inconsistently. I doubt there is a bug in RuleBase dieselisation.

 
> From: Krishna.Bhamidi@qwest.com
> To: rules-users@lists.jboss.org
> Date: Tue, 21 Apr 2009 06:29:05 -0600
> Subject: RE: [rules-users] RuleBase deserialization throws NPE
>
> Normally I get this when there is a version incompatibility between Guvnor and the clients. Are you using the same Drools jar versions on both sides?
>
> -----Original Message-----
> From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of dhai
> Sent: Monday, April 20, 2009 8:59 PM
> To: rules-users@lists.jboss.org
> Subject: [rules-users] RuleBase deserialization throws NPE
>
>
> We have application that has two parts. One is for authoring the rules and deploying RuleBase into database. Second reads that sterilized RuleBase from database and evaluate the rules. I am randomly getting NPE while I desterilize RuleBase. Its very inconsistent. The test data and environment in same. Once I get one NPE while performing 2000 transactions and second time I receive same exception after 500 transactions. The first test was executed in single threaded and second was in multi threaded.
>
> I was wondering if some one else had encounter same problem. There trace is:
>
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1820)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> at
> org.drools.common.AbstractRuleBase.doReadExternal(AbstractRuleBase.java:257)
> at
> org.drools.reteoo.ReteooRuleBase.readExternal(ReteooRuleBase.java:151)
> at
> java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
> at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
> at
> net.dharis.net.rules.RulesResolverImpl.resolveFor(RulesResolverImpl.java:48)
> --
> View this message in context: http://www.nabble.com/RuleBase-deserialization-throws-NPE-tp23147611p23147611.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


Find car news, reviews and more Looking to change your car this year?