# Hibernate error occurs sometimes, unable to identify root cause

**URL:** <https://discourse.hibernate.org/t/hibernate-error-occurs-sometimes-unable-to-identify-root-cause/2765>\
**Category:** Hibernate ORM\
**Created:** [May 30, 2019, 8:45am UTC](https://discourse.hibernate.org/t/hibernate-error-occurs-sometimes-unable-to-identify-root-cause/2765 "2019-05-30T08:45:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rejeth\_Tom\_George](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/rejeth_tom_george/32/610_2.png) [@Rejeth\_Tom\_George](https://discourse.hibernate.org/u/Rejeth_Tom_George)\
**Post date:** [May 30, 2019, 8:45am UTC](https://discourse.hibernate.org/t/hibernate-error-occurs-sometimes-unable-to-identify-root-cause/2765/1 "2019-05-30T08:45:21Z")

</div>

org.springframework.orm.ObjectOptimisticLockingFailureException: 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
