org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85) @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70) @4000000055ee620f340ba96c at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90) @4000000055ee620f340bad54 at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) @4000000055ee620f340bad54 at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) @4000000055ee620f340bb13c at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114) @4000000055ee620f340bb13c at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109) @4000000055ee620f340bb90c at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244) @4000000055ee620f340bb90c at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2667) @4000000055ee620f340bbcf4 at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2912) @4000000055ee620f340bbcf4 at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)

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 Atlassian JIRA by Matthew Hunter, 1 year ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85) @4000000055ee620f340ba584 at
via Atlassian JIRA by Matthew Hunter, 1 year ago
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85) @4000000055ee620f340ba584 at
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85) @4000000055ee620f340ba584 at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70) @4000000055ee620f340ba96c at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90) @4000000055ee620f340bad54 at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70) @4000000055ee620f340bad54 at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268) @4000000055ee620f340bb13c at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:114) @4000000055ee620f340bb13c at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:109) @4000000055ee620f340bb90c at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:244) @4000000055ee620f340bb90c at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2667) @4000000055ee620f340bbcf4 at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2912) @4000000055ee620f340bbcf4 at org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)

Users with the same issue

Once, 10 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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