Hide Forgot
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.
The reproducer test can be found at https://github.com/droolsjbpm/drools/pull/290.
Fixed by https://github.com/droolsjbpm/drools/commit/b7393433dec4769cfaa49bada2d3bc71eb4bf192
Verified on BRMS 6.0.0 ER6.