[rules-users] RuleBase deserialization throws NPE
Bhamidi, Krishna
Krishna.Bhamidi at qwest.com
Tue Apr 21 08:29:05 EDT 2009
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 at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of dhai
Sent: Monday, April 20, 2009 8:59 PM
To: rules-users at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list