Hi All,
During a transaction i call entityManager.merge(<a entity class>), that time i get the below error. Can someone throw light on how to avaoid this error or reason behind this.
Thanks
-Vijay
------------------------------------------------------------------------------
[Error] netxoffice.distworkflow.XlobSessionJPAService received unexpeced exception javax.persistence.PersistenceException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:
javax.persistence.PersistenceException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [netxoffice.distworkflow.entity.XlDocument#netxoffice.distworkflow.entity.XlDocument@2f]
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:237)
at netxoffice.distworkflow.service.beans.XlobSessionJPAService.storeCollection(XlobSessionJPAService.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|