org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [MyPersistentObject#2]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by uti.devel
, 2 years ago
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [MyPersistentObject#2]
via Stack Overflow by Syed Muddasir Ahmed
, 1 year ago
via hibernate.org by Unknown author, 2 years ago
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [ar.com.tgs.spac.domain.solicitud.SolicitudEnHora#[Contrato:ED004, Numero de Solicitud:304]]
via https://bugzilla.redhat.com/bugzilla/ by Dennis Crissman, 1 year ago
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.candlepin.model.Pool#8a85f986401105de01403b973f52419c]
via GitHub by xorkk
, 1 year ago
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [AccessToken#100071]
via alfresco.com by Unknown author, 2 years ago
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.alfresco.repo.workflow.jbpm.AlfrescoTimer#1497]
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [MyPersistentObject#2]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2541)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3403)
at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)
at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:349)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1222)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at undefined.HibernateExample.manipulatePersistentObjects(HibernateExample.java:143)
at undefined.HibernateExample.main(HibernateExample.java:15)

Users with the same issue

8 times, 7 months ago
2 times, 1 year ago
7 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.