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

hibernate.org | 3 months ago
  1. 0

    Hibernate Community • View topic - Batch update returned unexpected row count from update [0]

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

    Hibernate Community • View topic - Batch update returned unexpected row count from update [0]

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

    hibernate @onetomany relationship updates instead of insert during save

    Stack Overflow | 6 years ago | mileesah
    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

    Hibernate one-to-one mapping updating instead of inserting and throwing StaleStateException

    Stack Overflow | 4 years ago | beachw08
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
  6. 0

    Hibernate Stale State Exception while deleting from DB

    Stack Overflow | 4 years ago | stephanruhl
    org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

  1. mortalman7 1 times, last 4 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.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
    ActionQueue.executeActions
    1. org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:61)
    2. org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
    3. org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)
    4. org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
    5. org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
    6. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
    7. org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
    7 frames
  3. Hibernate
    SessionImpl.flush
    1. org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
    2. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    3. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
    3 frames
  4. Hibernate
    HibernateTemplate.saveOrUpdate
    1. org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:388)
    2. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:363)
    3. org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:676)
    3 frames
  5. chart
    Demo.main
    1. chart.AbstractSpringDao.saveOrUpdate(AbstractSpringDao.java:16)
    2. chart.OemSpringDao.saveOrUpdate(OemSpringDao.java:32)
    3. chart.Demo.main(Demo.java:33)
    3 frames