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

QQ登录

只需一步,快速开始

查看: 3194|回复: 2

[处理中3] execl导入数据校验报错,求解决

[复制链接]

31

主题

93

帖子

408

积分

中级会员

Rank: 3Rank: 3

积分
408
QQ
发表于 2018-4-8 16:10:59 | 显示全部楼层 |阅读模式
importExcelBeforeAction:
execlaction.png

控制台报错:
2018-04-08 16:06:29 结束-中间文件生成缓存文件: /UI2/system/components/justep/excel/dialog/importConfig.w
0
1
2018-04-08 16:06:35 excute stream action, params:{"accept":"application/json","action":"importExcel","actionFlag":"__action_0__","activity":"mainActivity","contentType":"json","executeContext":"","executor":"","parameters":{"config":{"@type":"xml","xml":"<config use-default=\"true\" to=\"DB\" excel-file=\"D:\\x5_changzhi\\apache-tomcat\\temp\\6dd84734-2a62-4a9a-8ed6-5a766a7a2e84.excel.tmp\" mapping-file=\"D:\\x5_changzhi\\apache-tomcat\\temp\\cdfceb60-f5f9-4b88-a845-0e003dc501db.excel.tmp\"><data><concept name=\"M_dr_xiada\"><relation name=\"DR1\" type=\"String\"/><relation name=\"DR10\" type=\"String\"/><relation name=\"DR11\" type=\"String\"/><relation name=\"DR12\" type=\"String\"/><relation name=\"DR13\" type=\"String\"/><relation name=\"DR14\" type=\"String\"/><relation name=\"DR15\" type=\"String\"/><relation name=\"DR16\" type=\"Integer\"/><relation name=\"DR17\" type=\"Integer\"/><relation name=\"DR2\" type=\"String\"/><relation name=\"DR3\" type=\"String\"/><relation name=\"DR4\" type=\"String\"/><relation name=\"DR5\" type=\"String\"/><relation name=\"DR6\" type=\"String\"/><relation name=\"DR7\" type=\"Integer\"/><relation name=\"DR8\" type=\"Integer\"/><relation name=\"DR9\" type=\"String\"/><relation name=\"FTJ\" type=\"Integer\"/><relation name=\"LRDW\" type=\"String\"/><relation name=\"LRRY\" type=\"String\"/><relation name=\"LRSJ\" type=\"DateTime\"/><relation name=\"M_dr_xiada\" type=\"String\"/><relation name=\"TB1\" type=\"String\"/><relation name=\"TB4\" type=\"Integer\"/><relation name=\"TB5\" type=\"Integer\"/><relation name=\"fPX\" type=\"Integer\"/><relation name=\"fSFXD\" type=\"Integer\"/><relation name=\"sfcz\" type=\"String\"/><relation name=\"version\" type=\"Integer\"/></concept></data></config>"},"createActionParam":{"action":"createM_dr_xiadaAction","activity":"mainActivity","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"M_dr_xiada","idColumnName":"M_dr_xiada","idColumnType":"String","model":"/MTTYXSGLXT/MTTYXSGLXT/data","relationAlias":"DR1,DR10,DR11,DR12,DR13,DR14,DR15,DR16,DR17,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,FTJ,LRDW,LRRY,LRSJ,TB1,TB4,TB5,fPX,fSFXD,sfcz,version","relationTypes":"String,String,String,String,String,String,String,Integer,Integer,String,String,String,String,String,Integer,Integer,String,Integer,String,String,DateTime,String,Integer,Integer,Integer,Integer,String,Integer","relations":"M_dr_xiada.DR1,M_dr_xiada.DR10,M_dr_xiada.DR11,M_dr_xiada.DR12,M_dr_xiada.DR13,M_dr_xiada.DR14,M_dr_xiada.DR15,M_dr_xiada.DR16,M_dr_xiada.DR17,M_dr_xiada.DR2,M_dr_xiada.DR3,M_dr_xiada.DR4,M_dr_xiada.DR5,M_dr_xiada.DR6,M_dr_xiada.DR7,M_dr_xiada.DR8,M_dr_xiada.DR9,M_dr_xiada.FTJ,M_dr_xiada.LRDW,M_dr_xiada.LRRY,M_dr_xiada.LRSJ,M_tibao.TB1,M_tibao.TB4,M_tibao.TB5,M_dr_xiada.fPX,M_dr_xiada.fSFXD,EXPRESS,M_dr_xiada.version","updateMode":"whereVersion"}}},"process":"/MTTYXSGLXT/MTTYXSGLXT/process/TL_JHXD2/tL_JHXD2Process"},"saveActionParam":{"action":"saveM_dr_xiadaAction","activity":"mainActivity","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"M_dr_xiada","idColumnName":"M_dr_xiada","idColumnType":"String","model":"/MTTYXSGLXT/MTTYXSGLXT/data","relationAlias":"DR1,DR10,DR11,DR12,DR13,DR14,DR15,DR16,DR17,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,FTJ,LRDW,LRRY,LRSJ,TB1,TB4,TB5,fPX,fSFXD,sfcz,version","relationTypes":"String,String,String,String,String,String,String,Integer,Integer,String,String,String,String,String,Integer,Integer,String,Integer,String,String,DateTime,String,Integer,Integer,Integer,Integer,String,Integer","relations":"M_dr_xiada.DR1,M_dr_xiada.DR10,M_dr_xiada.DR11,M_dr_xiada.DR12,M_dr_xiada.DR13,M_dr_xiada.DR14,M_dr_xiada.DR15,M_dr_xiada.DR16,M_dr_xiada.DR17,M_dr_xiada.DR2,M_dr_xiada.DR3,M_dr_xiada.DR4,M_dr_xiada.DR5,M_dr_xiada.DR6,M_dr_xiada.DR7,M_dr_xiada.DR8,M_dr_xiada.DR9,M_dr_xiada.FTJ,M_dr_xiada.LRDW,M_dr_xiada.LRRY,M_dr_xiada.LRSJ,M_tibao.TB1,M_tibao.TB4,M_tibao.TB5,M_dr_xiada.fPX,M_dr_xiada.fSFXD,EXPRESS,M_dr_xiada.version","sys.count":3,"sys.rowid":"M_dr_xiada","updateMode":"whereVersion"}}},"process":"/MTTYXSGLXT/MTTYXSGLXT/process/TL_JHXD2/tL_JHXD2Process"}},"process":"/MTTYXSGLXT/MTTYXSGLXT/process/TL_JHXD2/tL_JHXD2Process"}
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        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.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:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        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:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at TL_JHXD2Process.tL_JHXD2ProcessBeforeImportExcel(TL_JHXD2Process.java:28)
        ... 27 more


31

主题

93

帖子

408

积分

中级会员

Rank: 3Rank: 3

积分
408
QQ
 楼主| 发表于 2018-4-8 16:28:16 | 显示全部楼层
Workbook workBook = (Workbook) ModelUtils.getRequestContext().getActionContext().getParameter("excel");

workbook调试显示为null,这句不对吗?
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2018-4-8 16:44:11 | 显示全部楼层
操作的事件不正确
看process的动作设置中action不对,你应该是在importExcel这个action上操作的
应该在importExcelBeforeAction的这个action上操作
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 22:27 , Processed in 0.086738 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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