我的工程又继续报错了,应该怎么办,怎么解决

org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException:Objecto... org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Object of class [com.wyb.entity.site.SiteAdmin] with identifier [1]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.wyb.entity.site.SiteAdmin#1]
at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:200)
at org.springframework.orm.hibernate4.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:683)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:565)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:478)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:272)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at $Proxy69.recordLogin(Unknown Source)
展开
 我来答
maye100
推荐于2016-08-17 · TA获得超过2650个赞
知道小有建树答主
回答量:1341
采纳率:100%
帮助的人:974万
展开全部
你hibernate中的乐观锁出问了,原因很可能是你在做更新或删除操作时的问题
注意这句:Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)

大概的意思是这个错误和你的事物管理有关,只能帮你到这
百度网友b0cfb3d
2014-01-21 · 超过26用户采纳过TA的回答
知道答主
回答量:139
采纳率:0%
帮助的人:55.6万
展开全部
查看出错代码
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式