org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

codedump.io | 3 months ago
  1. 0

    Java. Hibernate. org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

    Stack Overflow | 11 months ago | Kleeo
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  2. 0

    Java. Hibernate. org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 (SQL) - Codedump.io

    codedump.io | 3 months ago
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  3. 0

    getting error with person api

    GitHub | 1 year ago | jluc2808
    org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HikariCP throws exceptions when multiple threads try to get and update at the same time

    GitHub | 1 year ago | kewangie
    org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  6. 0

    error while updating person: HHH000346: Error during managed flush

    GitHub | 8 months ago | jluc2808
    org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

    2 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.StaleStateException

      Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

      at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched()
    2. Hibernate
      JdbcCoordinatorImpl.beforeTransactionCompletion
      1. org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:67)
      2. org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:54)
      3. org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:46)
      4. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3197)
      5. org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3434)
      6. org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:98)
      7. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:560)
      8. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:434)
      9. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337)
      10. org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39)
      11. org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1282)
      12. org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:465)
      13. org.hibernate.internal.SessionImpl.flushBeforeTransactionCompletion(SessionImpl.java:2963)
      14. org.hibernate.internal.SessionImpl.beforeTransactionCompletion(SessionImpl.java:2339)
      15. org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.beforeTransactionCompletion(JdbcCoordinatorImpl.java:485)
      15 frames
    3. org.hibernate.resource
      JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit
      1. org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.beforeCompletionCallback(JdbcResourceLocalTransactionCoordinatorImpl.java:147)
      2. org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.access$100(JdbcResourceLocalTransactionCoordinatorImpl.java:38)
      3. org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:231)
      3 frames
    4. Hibernate
      TransactionImpl.commit
      1. org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:65)
      1 frame
    5. firstproject
      Main.main
      1. firstproject.Main.deleteProfessions(Main.java:33)
      2. firstproject.Main.main(Main.java:57)
      2 frames