起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 509|回复: 2

[请求]当前修改的数据已经被其他用户修改,不能进行保存操作!!!!!!

[复制链接]
发表于 2011-4-1 16:46:26 | 显示全部楼层 |阅读模式
tomcat日志出现错误  信息如下


java.lang.Exception: invoke batch method error, error occur during invoke ApplyUpdates method, 当前修改的数据已经被其他用户修改,不能进行保存操作. SQL:UPDATE QCLM SET YFJE=?, QTJE=?, KG=?, RKDBH=?, KBCCM=?, SFRG=?, RGSJ=?, LRR=?, LRSJ=?, MGH=?, SYKCL=?, JZ_1=?  WHERE ID = ?  AND DCDM = ?  AND XH = ?  AND KB = ?  AND YSDW = ?  AND MZ is NULL AND SJ is NULL AND MZ1 = ?  AND KCZ = ?  AND KD = ?  AND JZ = ?  AND CS = ?  AND SSS = ?  AND PZ = ?  AND SBY = ?  AND CH = ?  AND YFJE is NULL AND QTJE is NULL AND KG is NULL AND HD = ?  AND RCSJ = ?  AND RCSK = ?  AND ZT is NULL AND RKDBH is NULL AND CYDID is NULL AND KBCCM is NULL AND SFRG = ?  AND RGSJ is NULL AND LRR is NULL AND LRSJ is NULL AND PC is NULL AND MGH is NULL AND SYKCL is NULL AND SMRZID is NULL AND RHSJ is NULL AND JZ_1 is NULL
        at com.justep.service.action.base.BatchCallAction.innerExec(Unknown Source)
        at com.justep.service.action.base.BatchCallAction.doExec(Unknown Source)
        at com.justep.service.action.base.BatchCallAction.execute(Unknown Source)
        at com.justep.service.BizServiceImp.execute(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:157)
        at com.justep.hessian.HessianServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:652)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
        at java.lang.Thread.run(Thread.java:595)
回复

使用道具 举报

发表于 2011-4-1 17:03:09 | 显示全部楼层

Re: [请求]当前修改的数据已经被其他用户修改,不能进行保存操作!!!!!!

找到用这个表QCLM 的信息,检查数据集的更新方式是否是以主键更新,如果不是,改成以主键更新,如果是,就检查一下代码吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-1 17:27:30 | 显示全部楼层
检查了更新方式   一直都是默认的选择:以所有字段作为更新语句的条件(好像其它数据集的更新方式也都是这样)
但是这个错误是今天才出现的,我已经把更新方式改为以主键更新了,再观察一下是否正常

谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2024-12-23 09:25 , Processed in 0.037673 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表