Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368979 - UnitOfWork (and all its object dependencies) should be serializeable
Summary: UnitOfWork (and all its object dependencies) should be serializeable
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 10:29 EST by Patric Rufflar CLA
Modified: 2022-06-09 10:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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