EclipseLink 2.1.0 and Exception [EclipseLink-6004] [message #629212] |
Mon, 27 September 2010 13:45 |
Kostrhun 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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03230 seconds