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

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 hibernate.org by Unknown author, 1 year ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
via hibernate.org by Unknown author, 1 year ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
via Stack Overflow by beachw08
, 2 years ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
via Stack Overflow by stephanruhl
, 2 years ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
via Stack Overflow by danny.lesnik
, 2 years ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 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(Expectations.java:61)
at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:46)
at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:68)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:388)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:363)
at chart.AbstractSpringDao.saveOrUpdate(AbstractSpringDao.java:16)
at chart.OemSpringDao.saveOrUpdate(OemSpringDao.java:32)
at chart.Demo.main(Demo.java:33)

Users with the same issue

Once, 1 week ago
2 times, 4 weeks ago
Once, 5 months ago
Once, 7 months ago
Once, 7 months ago

Write tip

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