Red Hat Bugzilla – Bug 1000055
NPE during KieSession serialization
Last modified: 2014-08-06 16:15:36 EDT
Created attachment 789255 [details]
Exception stack trace
Description of problem:
When KieSession is serialized, a NPE is thrown in org.drools.core.marshalling.impl.ProtobufOutputMarshaller.writeRIANodeMemory(ProtobufOutputMarshaller.java:377).
Please see the attached stack trace for details.
I am not sure what exactly causes the NPE to be thrown, it probably depends on using some user defined facts (if I removed them, the NPE did not occur).
Please see the reproducer from the pull request which will be attached shortly.
Version-Release number of selected component (if applicable):
Please run JpaPersistentStatefulSessionTest#testMoreComplexRulesSerialization() test from the attached pull request.
Pull request with reproducer: https://github.com/droolsjbpm/drools/pull/239
Verified on BRMS 6.0.0.ER3.