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-tp23147611p2314...
Sent from the drools - user mailing list archive at
Nabble.com.