Bug 1034359 - Traits serialization broken
Summary: Traits serialization broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 16:49 UTC by Marek Winkler
Modified: 2014-08-06 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:47 UTC
Type: Bug


Attachments (Terms of Use)
Exception stacktrace (20.65 KB, text/plain)
2013-11-25 16:49 UTC, Marek Winkler
no flags Details

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.


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