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

QQ登录

只需一步,快速开始

查看: 2096|回复: 3

[结贴] 导入excel失败! java.lang.reflect.InvocationTargetException

[复制链接]

7

主题

27

帖子

131

积分

初级会员

Rank: 2

积分
131
发表于 2013-9-6 12:45:41 | 显示全部楼层 |阅读模式
版本: X5.2.5 小版本号:
数据库: Oracle 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
2013-09-06 12:39:56 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: 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.invokeAction(Native Method)
        at com.justep.system.action.Engine.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
        at com.justep.excel.ImportGenerator.generate(ImportGenerator.java:145)
        at Excel.importExcel(Excel.java:63)
        ... 26 more
Caused by: java.lang.NullPointerException
        at CodeManager.checkRules(CodeManager.java:76)
        at CodeManager.generateCode(CodeManager.java:54)
        at CodeManager.saveCM_BizCode(CodeManager.java:255)
        ... 37 more
2013-09-06 12:39:56 excute Action error:<?xml version="1.0" encoding="UTF-8"?>
<action direct-execute="false" process="/SA/excel/system/systemProcess" activity="mainActivity" action-flag="__action_0__" executor="ED0A24D978F649D790EA77F2C74482E9" execute-context="" name="importExcel"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="config"><xbiz:xml><config use-default="true" to="DB" excel-file="D:\MyProject\justep\X5.2.5_dev\X5.2.5\apache-tomcat\temp\0596aa7a-cb62-47e0-86d1-223ea81aa7e7.tmp" mapping-file="D:\MyProject\justep\X5.2.5_dev\X5.2.5\apache-tomcat\temp\61d41dd6-11ef-421b-b7e3-3bdb1496e673.tmp"><data><concept name="CM_BizCode"><relation name="calcCheckBox" type="Object"/><relation name="fStandardCode" type="String"/><relation name="fStandardName" type="String"/><relation name="fCode" type="String"/><relation name="fName" type="String"/><relation name="fDescription" type="String"/><relation name="fCreatorName" type="String"/><relation name="fCreatorFName" type="String"/><relation name="fCreateTime" type="DateTime"/><relation name="fStatus" type="String"/><relation name="fAuditorName" type="String"/><relation name="fAuditTime" type="DateTime"/><relation name="fAuditOpinion" type="Text"/><relation name="fStopperName" type="String"/><relation name="fStopTime" type="DateTime"/><relation name="fStopOpinion" type="Text"/><relation name="fRestorerName" type="String"/><relation name="fRestoreTime" type="DateTime"/><relation name="fRestoreOpinion" type="Text"/><relation name="fCancelorName" type="String"/><relation name="fCancelTime" type="DateTime"/><relation name="fCancelOpinion" type="Text"/><relation name="space-column" type="Object"/><relation name="version" type="Integer"/><relation name="fStandardID" type="String"/><relation name="fCreatorID" type="String"/><relation name="fCreatorFID" type="String"/><relation name="fCreatorOgnID" type="String"/><relation name="fCreatorOgnName" type="String"/><relation name="fCreatorDptID" type="String"/><relation name="fCreatorDptName" type="String"/><relation name="fBizID" type="String"/><relation name="fBizName" type="String"/><relation name="fAuditorID" type="String"/><relation name="fStopperID" type="String"/><relation name="fRestorerID" type="String"/><relation name="fCancelorID" type="String"/><relation name="fCMFile" type="String"/></concept></data></config></xbiz:xml></parameter><parameter name="createActionParam"><xbiz:map><item key="process"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[/CM/codeManager/process/bizCodeManager/bizCodeManagerProcess]]></xbiz:simple></item><item key="activity"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[applyActivity]]></xbiz:simple></item><item key="action"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[createCM_BizCodeAction]]></xbiz:simple></item><item key="parameters"><xbiz:map><item key="table"><xbiz:table><rows><userdata name="concept">CM_BizCode</userdata><userdata name="relations">EXPRESS,CM_BizCode.fStandardCode,CM_BizCode.fStandardName,CM_BizCode.fCode,CM_BizCode.fName,CM_BizCode.fDescription,CM_BizCode.fCreatorName,CM_BizCode.fCreatorFName,CM_BizCode.fCreateTime,CM_BizCode.fStatus,CM_BizCode.fAuditorName,CM_BizCode.fAuditTime,CM_BizCode.fAuditOpinion,CM_BizCode.fStopperName,CM_BizCode.fStopTime,CM_BizCode.fStopOpinion,CM_BizCode.fRestorerName,CM_BizCode.fRestoreTime,CM_BizCode.fRestoreOpinion,CM_BizCode.fCancelorName,CM_BizCode.fCancelTime,CM_BizCode.fCancelOpinion,EXPRESS,CM_BizCode.version,CM_BizCode.fStandardID,CM_BizCode.fCreatorID,CM_BizCode.fCreatorFID,CM_BizCode.fCreatorOgnID,CM_BizCode.fCreatorOgnName,CM_BizCode.fCreatorDptID,CM_BizCode.fCreatorDptName,CM_BizCode.fBizID,CM_BizCode.fBizName,CM_BizCode.fAuditorID,CM_BizCode.fStopperID,CM_BizCode.fRestorerID,CM_BizCode.fCancelorID,CM_BizCode.fCMFile</userdata><userdata name="model">/CM/codeManager/data</userdata><userdata name="concept-alias">CM_BizCode</userdata><userdata name="id-column-name">CM_BizCode</userdata><userdata name="id-column-type">String</userdata><userdata name="id-column-define">CM_BizCode</userdata><userdata name="relation-alias">calcCheckBox,fStandardCode,fStandardName,fCode,fName,fDescription,fCreatorName,fCreatorFName,fCreateTime,fStatus,fAuditorName,fAuditTime,fAuditOpinion,fStopperName,fStopTime,fStopOpinion,fRestorerName,fRestoreTime,fRestoreOpinion,fCancelorName,fCancelTime,fCancelOpinion,space-column,version,fStandardID,fCreatorID,fCreatorFID,fCreatorOgnID,fCreatorOgnName,fCreatorDptID,fCreatorDptName,fBizID,fBizName,fAuditorID,fStopperID,fRestorerID,fCancelorID,fCMFile</userdata><userdata name="relation-types">Object,String,String,String,String,String,String,String,DateTime,String,String,DateTime,Text,String,DateTime,Text,String,DateTime,Text,String,DateTime,Text,Object,Integer,String,String,String,String,String,String,String,String,String,String,String,String,String,String</userdata><userdata name="update-mode">whereVersion</userdata></rows></xbiz:table></item><item key="defaultValues"><xbiz:map/></item></xbiz:map></item></xbiz:map></parameter><parameter name="saveActionParam"><xbiz:map><item key="process"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[/CM/codeManager/process/bizCodeManager/bizCodeManagerProcess]]></xbiz:simple></item><item key="activity"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[applyActivity]]></xbiz:simple></item><item key="action"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[saveCM_BizCodeAction]]></xbiz:simple></item><item key="parameters"><xbiz:map><item key="table"><xbiz:table><rows><userdata name="model">/CM/codeManager/data</userdata><userdata name="id-column-name">CM_BizCode</userdata><userdata name="id-column-type">String</userdata><userdata name="id-column-define">CM_BizCode</userdata><userdata name="userdata">whereVersion</userdata><userdata name="relations">EXPRESS,CM_BizCode.fStandardCode,CM_BizCode.fStandardName,CM_BizCode.fCode,CM_BizCode.fName,CM_BizCode.fDescription,CM_BizCode.fCreatorName,CM_BizCode.fCreatorFName,CM_BizCode.fCreateTime,CM_BizCode.fStatus,CM_BizCode.fAuditorName,CM_BizCode.fAuditTime,CM_BizCode.fAuditOpinion,CM_BizCode.fStopperName,CM_BizCode.fStopTime,CM_BizCode.fStopOpinion,CM_BizCode.fRestorerName,CM_BizCode.fRestoreTime,CM_BizCode.fRestoreOpinion,CM_BizCode.fCancelorName,CM_BizCode.fCancelTime,CM_BizCode.fCancelOpinion,EXPRESS,CM_BizCode.version,CM_BizCode.fStandardID,CM_BizCode.fCreatorID,CM_BizCode.fCreatorFID,CM_BizCode.fCreatorOgnID,CM_BizCode.fCreatorOgnName,CM_BizCode.fCreatorDptID,CM_BizCode.fCreatorDptName,CM_BizCode.fBizID,CM_BizCode.fBizName,CM_BizCode.fAuditorID,CM_BizCode.fStopperID,CM_BizCode.fRestorerID,CM_BizCode.fCancelorID,CM_BizCode.fCMFile</userdata><userdata name="relation-types">Object,String,String,String,String,String,String,String,DateTime,String,String,DateTime,Text,String,DateTime,Text,String,DateTime,Text,String,DateTime,Text,Object,Integer,String,String,String,String,String,String,String,String,String,String,String,String,String,String</userdata><userdata name="relation-alias">calcCheckBox,fStandardCode,fStandardName,fCode,fName,fDescription,fCreatorName,fCreatorFName,fCreateTime,fStatus,fAuditorName,fAuditTime,fAuditOpinion,fStopperName,fStopTime,fStopOpinion,fRestorerName,fRestoreTime,fRestoreOpinion,fCancelorName,fCancelTime,fCancelOpinion,space-column,version,fStandardID,fCreatorID,fCreatorFID,fCreatorOgnID,fCreatorOgnName,fCreatorDptID,fCreatorDptName,fBizID,fBizName,fAuditorID,fStopperID,fRestorerID,fCancelorID,fCMFile</userdata><userdata name="sys.rowid">CM_BizCode</userdata><userdata name="sys.count">0</userdata><userdata name="concept">CM_BizCode</userdata><userdata name="concept-alias">CM_BizCode</userdata><userdata name="update-mode">whereVersion</userdata></rows></xbiz:table></item></xbiz:map></item></xbiz:map></parameter></parameters></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: 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.invokeAction(Native Method)
        at com.justep.system.action.Engine.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.model.impl.UtilImplementInstance.invokeAction(Unknown Source)
        at com.justep.system.action.ActionUtils.invokeAction(Unknown Source)
        at com.justep.excel.ImportGenerator.generate(ImportGenerator.java:145)
        at Excel.importExcel(Excel.java:63)
        ... 26 more
Caused by: java.lang.NullPointerException
        at CodeManager.checkRules(CodeManager.java:76)
        at CodeManager.generateCode(CodeManager.java:54)
        at CodeManager.saveCM_BizCode(CodeManager.java:255)
        ... 37 more


88

主题

9507

帖子

5135

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
5135
QQ
发表于 2013-9-6 13:45:28 | 显示全部楼层
是这里 at CodeManager.saveCM_BizCode(CodeManager.java:255) 报的错,检查或者调试一下
远程的联系方法 QQ 728094812。添加好友时,需要填写论坛账号
发远程时同时也发一下帖子的地址,方便了解要解决的问题

如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

7

主题

27

帖子

131

积分

初级会员

Rank: 2

积分
131
 楼主| 发表于 2013-9-6 13:56:33 | 显示全部楼层
谢谢
回复 支持 反对

使用道具 举报

7

主题

27

帖子

131

积分

初级会员

Rank: 2

积分
131
 楼主| 发表于 2013-9-6 14:27:26 | 显示全部楼层
搞定了,结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-21 21:44 , Processed in 0.106019 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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