|
导入excel报错:
<action direct-execute="false" process="/SA/excel/system/systemProcess" activity="mainActivity" action-flag="__action_0__" executor="" execute-context="" name="importExcel"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="config"><xbiz:xml><config use-default="true" to="UI" excel-file="D:\BeX5\X5JG\apache-tomcat\temp\62761737-190e-4557-b5cc-631523605d90.excel.tmp" mapping-file="D:\BeX5\X5JG\apache-tomcat\temp\09c91aee-55bf-4822-9c19-a7ad76c25aa6.excel.tmp"><data><concept name="BC_Law_Train"><relation name="fPXJG" type="String"/><relation name="fPXNR" type="String"/><relation name="fPXStartTime" type="Date"/><relation name="fPXEndTime" type="Date"/><relation name="fPXRemark" type="Text"/><relation name="fQDZS" type="String"/><relation name="fZSH" type="String"/><relation name="fQDSJ" type="Date"/><relation name="fPXLX" type="String"/><relation name="space-column" type="Object"/><relation name="version" type="Integer"/><relation name="fMasterID" type="String"/><relation name="fFJ" 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[/BCEG/lawReview/process/ForensicInformation/forensicInformationProcess]]></xbiz:simple></item><item key="activity"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[ForensicInformation]]></xbiz:simple></item><item key="action"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[createBC_Law_TrainAction]]></xbiz:simple></item><item key="parameters"><xbiz:map><item key="table"><xbiz:table><rows><userdata name="concept">BC_Law_Train</userdata><userdata name="relations">BC_Law_Train.fPXJG,BC_Law_Train.fPXNR,BC_Law_Train.fPXStartTime,BC_Law_Train.fPXEndTime,BC_Law_Train.fPXRemark,BC_Law_Train.fQDZS,BC_Law_Train.fZSH,BC_Law_Train.fQDSJ,BC_Law_Train.fPXLX,EXPRESS,BC_Law_Train.version,BC_Law_Train.fMasterID,BC_Law_Train.fFJ</userdata><userdata name="model">/BCEG/lawReview/data</userdata><userdata name="concept-alias">BC_Law_Train</userdata><userdata name="id-column-name">BC_Law_Train</userdata><userdata name="id-column-type">String</userdata><userdata name="id-column-define">BC_Law_Train</userdata><userdata name="relation-alias">fPXJG,fPXNR,fPXStartTime,fPXEndTime,fPXRemark,fQDZS,fZSH,fQDSJ,fPXLX,space-column,version,fMasterID,fFJ</userdata><userdata name="relation-types">String,String,Date,Date,Text,String,String,Date,String,Object,Integer,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></parameters></action>
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 com.justep.micro.service.MicroServiceFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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 org.apache.poi.openxml4j.opc.OPCPackage.getPart(OPCPackage.java:562)
at org.apache.poi.POIXMLDocumentPart.<init>(POIXMLDocumentPart.java:63)
at org.apache.poi.POIXMLDocument.<init>(POIXMLDocument.java:58)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:179)
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:63)
at com.justep.excel.ImportGenerator.LoadExcel(ImportGenerator.java:65)
at com.justep.excel.ImportGenerator.init(ImportGenerator.java:58)
at com.justep.excel.ImportGenerator.generate(ImportGenerator.java:109)
at Excel.importExcel(Excel.java:91)
... 30 more
这是xml的代码:
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<default-config>
<sheet all="false" start="1" end="1"/>
<row all="false" start="2" />
</default-config>
<concept name="BC_Law_Train">
<relation name="fPXJG" value-type="string" cell-number="1"/>
<relation name="fPXNR" value-type="string" cell-number="2"/>
<relation name="fPXStartTime" value-type="date" cell-number="3"/>
<relation name="fPXEndTime" value-type="date" cell-number="4"/>
<relation name="fPXRemark" cell-number="5"/>
<relation name="fQDZS" value-type="string" cell-number="6"/>
<relation name="fZSH" value-type="string" cell-number="7"/>
<relation name="fQDSJ" value-type="date" cell-number="8"/>
<relation name="fPXLX" value-type="string" cell-number="9"/>
</concept>
</mapping>
培训机构 | 培训内容 | 培训开始时间 | 培训结业时间 | 培训备注 | 取得成果/证书 | 证书号 | 取得时间 | 培训类型 | 身份证号 | 测试2020-2-1 | 测试2020-2-1 | 43831 | 44228 | 测试2020-2-1 | 测试2020-2-1 | 测试2020-2-1 | 44228 | 测试2020-2-1 | 1 | 测试2020-2-2 | 测试2020-2-2 | 44229 | 44229 | 测试2020-2-2 | 测试2020-2-2 | 测试2020-2-2 | 44229 | 测试2020-2-2 | 2 | 测试2020-2-3 | 测试2020-2-3 | 44230 | 44230 | 测试2020-2-3 | 测试2020-2-3 | 测试2020-2-3 | 44230 | 测试2020-2-3 | 3 | 测试2020-2-4 | 测试2020-2-4 | 44231 | 44231 | 测试2020-2-4 | 测试2020-2-4 | 测试2020-2-4 | 44231 | 测试2020-2-4 | 4 | 测试2020-2-5 | 测试2020-2-5 | 44232 | 44232 | 测试2020-2-5 | 测试2020-2-5 | 测试2020-2-5 | 44232 | 测试2020-2-5 | 5 | 测试2020-2-6 | 测试2020-2-6 | 44233 | 44233 | 测试2020-2-6 | 测试2020-2-6 | 测试2020-2-6 | 44233 | 测试2020-2-6 | 6 | 测试2020-2-7 | 测试2020-2-7 | 44234 | 44234 | 测试2020-2-7 | 测试2020-2-7 | 测试2020-2-7 | 44234 | 测试2020-2-7 | 7 |
|
|