Bug 748752

Summary: Traits are not serializable
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Tomas Schlosser <tschloss>
Component: BRE (Expert, Fusion)Assignee: Mark Proctor <mproctor>
Status: ASSIGNED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: atangrin, lpetrovi, mfusco, mproctor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Schlosser 2011-10-25 09:32:10 UTC
Description of problem:
If you use traits with persisted sessions you get NotSerializableException.

Version-Release number of selected component (if applicable):
BRMS-5.3.0.dev4

How reproducible:
Every time

Steps to Reproduce:
1. Create persisted session
2. Insert fact that is used to create trait
  
Actual results:
java.io.NotSerializableException: org.drools.factmodel.traits.ThingorgjbossqadroolsdomainPersonWrapperProxy

Expected results:
Persisted trait and clean rules execution.

Additional info:

Comment 2 Mark Proctor 2012-01-19 01:21:28 UTC
I don't think traits are being productized at the moment. We can double check with prakash. I suggest we document them as an experimental feature for the product.

Comment 3 Ryan Zhang 2012-04-23 07:40:23 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 5 Lukáš Petrovický 2012-05-02 10:32:31 UTC
This wasn't fixed in 5.3.

Comment 6 lcarlon 2012-05-02 23:43:24 UTC
I've added a note to the release notes for BRMS 5.3 that states traits is an experimental feature.