Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368979

Summary: UnitOfWork (and all its object dependencies) should be serializeable
Product: z_Archived Reporter: Patric Rufflar <patric>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Patric Rufflar CLA 2012-01-18 10:29:01 EST
Build Identifier: 2.1.3

It would be very helpful for debugging if a (Repeatable-)UnitOfWork (and all its dependent objectS) could be serialized.

Currently, this is not possible, at least the following class is not defined as Serializable

java.io.NotSerializableException: org.eclipse.persistence.internal.jpa.CMP3Policy$FieldAccessor
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
	at java.util.HashMap.writeObject(HashMap.java:1001)
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
(...)


Reproducible: Always
Comment 1 Tom Ware CLA 2012-02-09 10:32:47 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:16:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:30:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink