Bug 1034359

Summary: Traits serialization broken
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: mfusco
Target Milestone: ER6Keywords: Regression
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:20:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Exception stacktrace none

Description Marek Winkler 2013-11-25 16:49:33 UTC
Created attachment 828757 [details]
Exception stacktrace

Description of problem:

When attempting to persist a KieSession containing a trait fact, the serialization fails with the following exception (see attachment for complete stack trace):

java.lang.NoSuchFieldError: __$$field_Tms$$
	at org.drools.persistence.kie.persistence.session.JpaPersistentStatefulSessionTest$DoorWrapper.writeExternal(Unknown Source) ~[na:na]
	at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1443) ~[na:1.7.0_09-icedtea]
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1414) ~[na:1.7.0_09-icedtea]
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) ~[na:1.7.0_09-icedtea]
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) ~[na:1.7.0_09-icedtea]
	at java.util.ArrayList.writeObject(ArrayList.java:710) ~[na:1.7.0_09-icedtea]

Version-Release number of selected component (if applicable):

Drools 6.0.0-SNAPSHOT
BRMS 6.0.0 ER5

This issue was not present in ER4.

How reproducible:

Run the test org.drools.persistence.kie.persistence.session.JpaPersistentStatefulSessionTest#testTraitsSerialization from the pull request which will be attached shortly.

Actual results:

Transaction cannot be committed due to the serialization error.

Expected results:

Transaction is committed and the test passes.

Comment 1 Marek Winkler 2013-11-25 17:04:03 UTC
The reproducer test can be found at https://github.com/droolsjbpm/drools/pull/290.

Comment 3 Marek Winkler 2014-01-03 17:15:07 UTC
Verified on BRMS 6.0.0 ER6.