org.hibernate.exception.LockAcquisitionException: could not execute statement

jboss.org | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [keycloak-user] db deadlock in concurrence environment

    jboss.org | 8 months ago
    org.hibernate.exception.LockAcquisitionException: could not execute statement
  2. 0

    Asynchronous handling - DB deadlocks and concurrency issues

    Google Groups | 2 years ago | Jakub Čech
    org.hibernate.exception.LockAcquisitionException: could not >> execute statement >> at >> org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:140) at >> org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) at >> org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) at >> org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) at >> org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:190) at >> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3285) at >> org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3183) at >> org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3525) at >> org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:159) 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)

    Root Cause Analysis

    1. org.hibernate.exception.LockAcquisitionException

      could not execute statement

      at org.hibernate.dialect.Oracle8iDialect$2.convert()
    2. Hibernate
      SessionImpl.flush
      1. org.hibernate.dialect.Oracle8iDialect$2.convert(Oracle8iDialect.java:473)
      2. org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
      3. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
      4. org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
      5. org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:211)
      6. org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:62)
      7. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3400)
      8. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3630)
      9. org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:114)
      10. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)
      11. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:351)
      12. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
      13. org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
      14. org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
      14 frames
    3. org.hibernate.jpa
      AbstractEntityManagerImpl.flush
      1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335)
      1 frame