|
导入功能,每次导入excel,报错argument type mismatch 参数类型不匹配。平台没有按照我的字段排序方式导入。而平台自己排序的方式导入,所以数据类型就总是对不上,不匹配。这个怎么解决?
这是我mapping映射的字段顺序。
2017-07-27 11:31:33 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:\\BeX5_V3.3\\apache-tomcat\\temp\\abf7a685-4e23-447c-b7e7-61c46167c0c2.excel.tmp\" mapping-file=\"D:\\BeX5_V3.3\\apache-tomcat\\temp\\c1480589-337d-4a1b-9324-c612b87c9511.excel.tmp\"><data><concept name=\"Basic_totalproject\"><relation name=\"Basic_totalproject\" type=\"String\"/><relation name=\"CreateDate\" type=\"DateTime\"/><relation name=\"CreateUser\" type=\"String\"/><relation name=\"DICNAME\" type=\"String\"/><relation name=\"ModifyDate\" type=\"DateTime\"/><relation name=\"ModifyUser\" type=\"String\"/><relation name=\"ProjectYear\" type=\"String\"/><relation name=\"TheBudget\" type=\"Decimal\"/><relation name=\"TotalBudget\" type=\"Decimal\"/><relation name=\"constructionType\" type=\"String\"/><relation name=\"ifAcrossYears\" type=\"String\"/><relation name=\"totalprojectname\" type=\"String\"/></concept></data></config>"},"createActionParam":{"action":"createBasic_totalprojectAction","activity":"mainActivity","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"Basic_totalproject","idColumnName":"Basic_totalproject","idColumnType":"String","model":"/ncpms/basic_totalproject/data","relationAlias":"CreateDate,CreateUser,DICNAME,ModifyDate,ModifyUser,ProjectYear,TheBudget,TotalBudget,constructionType,ifAcrossYears,totalprojectname","relationTypes":"DateTime,String,String,DateTime,String,String,Decimal,Decimal,String,String,String","relations":"Basic_totalproject.CreateDate,Basic_totalproject.CreateUser,Sys_dictionarydts.DICNAME,Basic_totalproject.ModifyDate,Basic_totalproject.ModifyUser,Basic_totalproject.ProjectYear,Basic_totalproject.TheBudget,Basic_totalproject.TotalBudget,Basic_totalproject.constructionType,Basic_totalproject.ifAcrossYears,Basic_totalproject.totalprojectname","updateMode":"whereAll"}}},"process":"/ncpms/basic_totalproject/process/basic_totalproject/basic_totalprojectProcess"},"saveActionParam":{"action":"saveBasic_totalprojectAction","activity":"mainActivity","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"Basic_totalproject","idColumnName":"Basic_totalproject","idColumnType":"String","model":"/ncpms/basic_totalproject/data","relationAlias":"CreateDate,CreateUser,DICNAME,ModifyDate,ModifyUser,ProjectYear,TheBudget,TotalBudget,constructionType,ifAcrossYears,totalprojectname","relationTypes":"DateTime,String,String,DateTime,String,String,Decimal,Decimal,String,String,String","relations":"Basic_totalproject.CreateDate,Basic_totalproject.CreateUser,Sys_dictionarydts.DICNAME,Basic_totalproject.ModifyDate,Basic_totalproject.ModifyUser,Basic_totalproject.ProjectYear,Basic_totalproject.TheBudget,Basic_totalproject.TotalBudget,Basic_totalproject.constructionType,Basic_totalproject.ifAcrossYears,Basic_totalproject.totalprojectname","updateMode":"whereAll"}}},"process":"/ncpms/basic_totalproject/process/basic_totalproject/basic_totalprojectProcess"}},"process":"/SA/excel/system/systemProcess"}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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.system.action.ActionUtils.invokeAction(Unknown Source)
at com.justep.excel.ImportGenerator.generate(ImportGenerator.java:122)
at Excel.importExcel(Excel.java:97)
... 27 more
|
|