javax.persistence.OptimisticLockException

jboss.org | 5 months ago
  1. 0

    How to treat OptimisticLockException? | JBoss Developer

    jboss.org | 5 months ago
    javax.persistence.OptimisticLockException
  2. 0

    When completing a User Task in jBPM 5 it throws "Row was updated or deleted by another transaction" exception - Red Hat Customer Portal

    redhat.com | 9 months ago
    javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#455]
  3. 0

    Locking Exception when creating new students at the same time

    GitHub | 5 years ago | geoffreykwan
    org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [net.sf.sail.webapp.domain.group.impl.PersistentGroup] with identifier [29890]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [net.sf.sail.webapp.domain.group.impl.PersistentGroup#29890]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate exception when saving entity

    Stack Overflow | 2 years ago | Carolik
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.company.EntityForSave#12345]
  6. 0

    Multiple threads adding to child collection results in StaleObjectStateException

    Stack Overflow | 4 years ago | kmansoor
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.test.project.domain.Job#2]

  1. haerick 1 times, last 6 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.StaleObjectStateException

    Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [curso.ejb3.Item#1]

    at org.hibernate.persister.entity.AbstractEntityPersister.check()
  2. Hibernate
    AbstractEntityPersister.update
    1. org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
    2. org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
    3. org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
    4. org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
    4 frames
  3. Hibernate
    EntityUpdateAction.execute
    1. org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
    1 frame
  4. Hibernate
    ActionQueue.executeActions
    1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
    2. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
    3. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
    3 frames
  5. Hibernate
    SessionImpl.managedFlush
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
    2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    4. org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
    4 frames
  6. Hibernate EJB
    AbstractEntityManagerImpl$1.beforeCompletion
    1. org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
    1 frame
  7. JBossTS jbossjta
    BaseTransaction.commit
    1. com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
    2. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
    3. com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
    4. com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
    5. com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
    6. com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
    6 frames
  8. Narayana: ArjunaJTS integration
    BaseTransactionManagerDelegate.commit
    1. com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
    1 frame
  9. org.jboss.aspects
    TxInterceptor$Required.invoke
    1. org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
    2. org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
    3. org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
    3 frames
  10. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  11. org.jboss.aspects
    TxPropagationInterceptor.invoke
    1. org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    1 frame
  12. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  13. org.jboss.ejb3
    StatefulInstanceInterceptor.invoke
    1. org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
    1 frame
  14. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  15. org.jboss.aspects
    AuthenticationInterceptor.invoke
    1. org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
    1 frame
  16. org.jboss.ejb3
    Ejb3AuthenticationInterceptor.invoke
    1. org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
    1 frame
  17. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  18. org.jboss.ejb3
    ENCPropagationInterceptor.invoke
    1. org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
    1 frame
  19. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  20. org.jboss.ejb3
    AsynchronousInterceptor.invoke
    1. org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
    1 frame
  21. org.jboss.aop
    MethodInvocation.invokeNext
    1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    1 frame
  22. org.jboss.ejb3
    StatefulContainer.dynamicInvoke
    1. org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:333)
    1 frame
  23. org.jboss.aop
    Dispatcher.invoke
    1. org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
    1 frame
  24. JBoss Application Server Aspects
    AOPRemotingInvocationHandler.invoke
    1. org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
    1 frame
  25. org.jboss.remoting
    ServerThread.run
    1. org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
    2. org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
    3. org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
    4. org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
    4 frames