Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink 2.1.0 and Exception [EclipseLink-6004]
EclipseLink 2.1.0 and Exception [EclipseLink-6004] [message #629212] Mon, 27 September 2010 13:45 Go to next message
Kostrhun  is currently offline Kostrhun Friend
Messages: 2
Registered: September 2010
Junior Member
After upgrading to EclipseLink 2.1.0 our programme started throw exceptions (Exception [EclipseLink-6004]). We can't determine the reason because the exceptions are thrown randomly. Does anyone run into similar difficulties?

Exception [EclipseLink-6004] (Eclipse Persistence Services - 2.1.0.v20100614-r7608):
Exception Description: The object [VerzePojistitelnehoRizikaImpl@2135193422:objId=198628], of class [class mpl], with identity hashcode (System.identityHashCode()) [2,135,193,422], is not from this UnitOfWork object space, but the parent session's. The object was never registered in this UnitOfWork, but read from the parent session and related to an object registered in the UnitOfWork. Ensure that you are correctly registering your objects. If you are still having problems, you can use the UnitOfWork.validateObjectSpace() method to help debug where the error occurred. For more information, see the manual or FAQ.]
Re: EclipseLink 2.1.0 and Exception [EclipseLink-6004] [message #629258 is a reply to message #629212] Mon, 27 September 2010 15:40 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

The error means you have either corrupted your cache, or violated object identity in some way.

Ensure you only related managed objects to managed objects, i.e. when in an EntityManager/transaction don't not use objects you read from other EntityManager or transactions. Ensure you are using merge() correctly.

Try to narrow down the cases when the exception occurs, and enable logging to help diagnose the issue.

James : Wiki : Book : Blog : Twitter
Previous Topic:How to trigger Entity's callback method?
Next Topic:Clustering Jboss with Eclipselink
Goto Forum:

Current Time: Thu Jun 21 01:20:06 GMT 2018

Powered by FUDForum. Page generated in 0.03104 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top