起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2234|回复: 9

软件包不存在错误

[复制链接]

55

主题

201

帖子

367

积分

中级会员

Rank: 3Rank: 3

积分
367
QQ
发表于 2013-12-4 14:29:46 | 显示全部楼层 |阅读模式
在人力资源--系统工具中,点击“HR组织初始化”按钮,报如下错误:
QQ截图20131204142937.png
该错误在新建组织机构处,也有出现。

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-5 08:44:34 | 显示全部楼层
检查路径model\BIZ\HR\systools\logic\code\dsrc下是否有HRSysTools.java文件,如果有,就重新编译一下

55

主题

201

帖子

367

积分

中级会员

Rank: 3Rank: 3

积分
367
QQ
 楼主| 发表于 2013-12-5 13:37:38 | 显示全部楼层
重新编译后,人力资源--系统工具中,点击“HR组织初始化”按钮,报如下错误:
QQ截图20131205133737.png

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-6 08:49:30 | 显示全部楼层
james 发表于 2013-12-5 13:37
重新编译后,人力资源--系统工具中,点击“HR组织初始化”按钮,报如下错误:
...

请帖一下控制台详细内容

55

主题

201

帖子

367

积分

中级会员

Rank: 3Rank: 3

积分
367
QQ
 楼主| 发表于 2013-12-6 09:19:49 | 显示全部楼层
initHROrgBySys->regenerateSAOrgURL
regenerateSAOrgURL->sqlClearURL: update SA_OPOrg o set  o.sFID = 'null', o.sFCode = 'null',  o.sFName = 'null', o.version =  o.version + 1
2013-12-06 09:20:03 invokeActions error!
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:595)
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:592)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        ... 21 more
Caused by: com.justep.model.exception.ModelException: 执行ksql:update SA_OPOrg  o  set o.sFID = 'null', o.sFCode = 'null', o.sFName = 'null'  where  o.sParent in (select b from SA_OPOrg b where  b.sFID ='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 x5hr.utils.SysOrgURL.regenerateSAOrgURL(SysOrgURL.java:81)
        at x5hr.utils.SysOrgURL.regenerateSAOrgURL(SysOrgURL.java:24)
        at x5hr.utils.HROrgInit.initHROrgBySys(HROrgInit.java:24)
        at HRSysTools.initHROrg(HRSysTools.java:8)
        ... 26 more
Caused by: com.justep.model.exception.ModelException: 执行sql:UPDATE SA_OPOrg SET SA_OPOrg.sFID = ?, SA_OPOrg.SFCODE = ?, SA_OPOrg.sFName = ?  WHERE SA_OPOrg.sParent IN (SELECT  b.sID FROM SA_OPOrg b  WHERE b.sFID = ?), binds:[null, null, null, null]出错!
        at com.justep.system.ksql.KSQLUtils.execSqlUpdate(Unknown Source)
        ... 35 more
Caused by: java.sql.SQLException: You can't specify target table 'SA_OPOrg' 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)
        ... 36 more
2013-12-06 09:20:03 excute Action error:<?xml version="1.0" encoding="UTF-8"?>
<action direct-execute="false" process="/HR/systools/process/systools/systoolsProcess" activity="systoolsActivity" action-flag="__action_0__" executor="" execute-context="" name="InitHROrgAction">undefined</action>
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:595)
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:592)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        ... 21 more
Caused by: com.justep.model.exception.ModelException: 执行ksql:update SA_OPOrg  o  set o.sFID = 'null', o.sFCode = 'null', o.sFName = 'null'  where  o.sParent in (select b from SA_OPOrg b where  b.sFID ='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 x5hr.utils.SysOrgURL.regenerateSAOrgURL(SysOrgURL.java:81)
        at x5hr.utils.SysOrgURL.regenerateSAOrgURL(SysOrgURL.java:24)
        at x5hr.utils.HROrgInit.initHROrgBySys(HROrgInit.java:24)
        at HRSysTools.initHROrg(HRSysTools.java:8)
        ... 26 more
Caused by: com.justep.model.exception.ModelException: 执行sql:UPDATE SA_OPOrg SET SA_OPOrg.sFID = ?, SA_OPOrg.SFCODE = ?, SA_OPOrg.sFName = ?  WHERE SA_OPOrg.sParent IN (SELECT  b.sID FROM SA_OPOrg b  WHERE b.sFID = ?), binds:[null, null, null, null]出错!
        at com.justep.system.ksql.KSQLUtils.execSqlUpdate(Unknown Source)
        ... 35 more
Caused by: java.sql.SQLException: You can't specify target table 'SA_OPOrg' 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)
        ... 36 more

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-6 09:44:27 | 显示全部楼层
james 发表于 2013-12-6 09:19
initHROrgBySys->regenerateSAOrgURL
regenerateSAOrgURL->sqlClearURL: update SA_OPOrg o set  o.sFID =  ...

数据源连接正常吗

55

主题

201

帖子

367

积分

中级会员

Rank: 3Rank: 3

积分
367
QQ
 楼主| 发表于 2013-12-6 16:36:55 | 显示全部楼层
数据源连接正常,因为别的功能是可以使用的。

55

主题

201

帖子

367

积分

中级会员

Rank: 3Rank: 3

积分
367
QQ
 楼主| 发表于 2013-12-9 09:05:00 | 显示全部楼层
等回复

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-9 09:38:22 | 显示全部楼层
james 发表于 2013-12-9 09:05
等回复

远程看一下,739066752

39

主题

1379

帖子

2464

积分

金牌会员

Rank: 6Rank: 6

积分
2464
发表于 2013-12-9 12:28:37 | 显示全部楼层
lixin_justep 发表于 2013-12-9 09:38
远程看一下,739066752

已远程,hr目前只支持oracle数据库
高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-1 12:31 , Processed in 0.126939 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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