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):
org.eclipse.persistence.exceptions.QueryException
Exception Description: The object [VerzePojistitelnehoRizikaImpl@2135193422:objId=198628], of class [class cz.ais.sirael.modules.pro.aisimpl.VerzePojistitelnehoRizikaI 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: Sun Dec 21 04:18:04 GMT 2014

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

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