Bug 1000055 - NPE during KieSession serialization
Summary: NPE during KieSession serialization
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER3
: 6.0.0
Assignee: Edson Tirelli
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 14:56 UTC by Marek Winkler
Modified: 2014-08-06 20:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:15:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Exception stack trace (3.53 KB, text/plain)
2013-08-22 14:56 UTC, Marek Winkler
no flags Details

Description Marek Winkler 2013-08-22 14:56:54 UTC
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):

Drools 6.0.0-SNAPSHOT

How reproducible:

Please run JpaPersistentStatefulSessionTest#testMoreComplexRulesSerialization() test from the attached pull request.

Comment 1 Marek Winkler 2013-08-22 15:04:53 UTC
Pull request with reproducer: https://github.com/droolsjbpm/drools/pull/239

Comment 2 Edson Tirelli 2013-08-22 23:42:33 UTC
Fixed.

https://github.com/droolsjbpm/drools/compare/7ce8e3e...db184ec

Comment 3 Marek Winkler 2013-09-24 15:38:49 UTC
Verified on BRMS 6.0.0.ER3.


Note You need to log in before you can comment on or make changes to this bug.