|
楼主 |
发表于 2014-9-30 11:46:13
|
显示全部楼层
- com.justep.model.exception.ModelException: java.lang.reflect.InvocationTargetException
- at com.justep.system.action.Engine.invokeActions(Unknown Source)
- at com.justep.business.server.BusinessServer.doAction(Unknown Source)
- at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
- at com.justep.business.server.BusinessServer.excute(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
- at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
- at java.lang.Thread.run(Thread.java:619)
- Caused by: java.lang.reflect.InvocationTargetException
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at com.justep.system.action.Engine.invokeActions(Native Method)
- ... 21 more
- Caused by: com.justep.model.exception.ModelException: 执行ksql:update HR_OG_Org a set a.fFID = (select concat(b.fFID,'/',a,'.',a.fOrgKindID) from HR_OG_Org b where b = a.fParent), a.fFCode = (select concat(b.fFCode,'/',a.fCode) from HR_OG_Org b where b = a.fParent), a.fFName = (select concat(b.fFName,'/',a.fName) from HR_OG_Org b where b = a.fParent) where a.fFID is null and a.fParent in(select o from HR_OG_Org o where o.fFID is not null)时出错!
- at com.justep.system.data.impl.TableUtilsImplement.ksqlUpdate(Unknown Source)
- at com.justep.system.data.impl.TableUtilsImplement.ksqlExecuteUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.justep.system.data.KSQL.executeUpdate(Unknown Source)
- at com.x5hr.org.HROrgURL.reBuildOrgURL(HROrgURL.java:42)
- at com.x5hr.org.HROrgSync.synchronizeHROrgToSA(HROrgSync.java:22)
- at HRToSystemSync.orgSync(HRToSystemSync.java:10)
- ... 26 more
- Caused by: com.justep.model.exception.ModelException: 执行sql:UPDATE HR_OG_Org SET HR_OG_Org.FFID = (SELECT concat_ws('',b.FFID, ?, HR_OG_Org.fID, ?, HR_OG_Org.FORGKINDID) FROM HR_OG_Org b WHERE b.fID = HR_OG_Org.fParent), HR_OG_Org.FFCODE = (SELECT concat_ws('',b.FFCODE, ?, HR_OG_Org.FCODE) FROM HR_OG_Org b WHERE b.fID = HR_OG_Org.fParent), HR_OG_Org.FFNAME = (SELECT concat_ws('',b.FFNAME, ?, HR_OG_Org.FNAME) FROM HR_OG_Org b WHERE b.fID = HR_OG_Org.fParent) WHERE (HR_OG_Org.FFID IS NULL) AND (HR_OG_Org.fParent IN (SELECT o.fID FROM HR_OG_Org o WHERE o.FFID IS NOT NULL)) , binds:[/, ., /, /]出错!
- at com.justep.system.ksql.KSQLUtils.execSqlUpdate(Unknown Source)
- ... 34 more
- Caused by: java.sql.SQLException: You can't specify target table 'HR_OG_Org' for update in FROM clause
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
- at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
- at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
- at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
- at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1166)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1082)
- at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1067)
- at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
- at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
- ... 35 more
复制代码 |
|