【发布时间】:2016-07-18 03:45:58
【问题描述】:
我的 WebApp 出现以下错误:
Handling an unexpected exception in webApp:
- javax.servlet.error.status_code = 500
- javax.servlet.error.exception_type = class org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException
- javax.servlet.error.message = Object of class [domain.entity.common.dataEntity] with identifier [110837262]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [domain.entity.common.dataEntity
我不知道为什么会出现这个错误,它出现在下面一行。
SpecEntity specTemp = this.persistService.merge(specTemp);
有人可以在这里帮忙吗..
【问题讨论】:
标签: hibernate spring-mvc jpa jakarta-ee