我在WebApp中遇到以下错误:
处理WebApp中的意外异常: - javax.servlet.error.status_code = 500 - javax.servlet.error.exception_type = class org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException - javax.servlet.error.message = 具有标识符 [110837262] 的类对象 [domain.entity.common.dataEntity]:乐观锁定失败; 嵌套异常为 org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [domain.entity.common.dataEntity
我不确定为什么会出现这个错误,它出现在下面的代码行中。
处理WebApp中的意外异常: - javax.servlet.error.status_code = 500 - javax.servlet.error.exception_type = class org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException - javax.servlet.error.message = 具有标识符 [110837262] 的类对象 [domain.entity.common.dataEntity]:乐观锁定失败; 嵌套异常为 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);
请有人帮忙这里……