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

QQ登录

只需一步,快速开始

查看: 3249|回复: 3

[处理中3] 无法导入wps处理守的excel文件

[复制链接]

47

主题

102

帖子

632

积分

高级会员

Rank: 4

积分
632
QQ
发表于 2018-2-1 16:27:41 | 显示全部楼层 |阅读模式
版本: BeX5V3.2 小版本号:
数据库: Oracle 服务器操作系统: 应用服务器:
客户端操作系统: Windows 7 浏览器:
做的一个excel导入的功能 ,
客户下载模板后,使用wps编辑excel文件后,该EXCEL都无法导入,报的是请求编码错误:200,
同样的文档,经过office打开后,注意是只打开一下,没有保存,在导入的时候,导入了,
同时,在用wps软件打开excel,只是打开一下,在导入的时候,报的是请求编码错误:200,请问这是什么情况啊,
下面是错误说明
2018-02-01 16:26:30 [Action Time]action执行时间:9ms,/rkyOA/cwgl/bmjf/process/jfbx/jfbxProcess,mainActivity,uploadImportExcel
2018-02-01 16:26:30 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=\"UI\" excel-file=\"D:\\developer\\BeX5_V3.2.1_pre\\apache-tomcat\\temp\\b1a2a70c-5fc8-4f2e-8742-e93a0c86af3c.excel.tmp\" mapping-file=\"D:\\developer\\BeX5_V3.2.1_pre\\apache-tomcat\\temp\\e8d13db8-8d22-429c-bc43-e7422f7d65b7.excel.tmp\"><data><concept name=\"T_APP_JFBX_CWBXFORXM_YWLWF\"><relation name=\"F_ACCOUNT\" type=\"String\"/><relation name=\"F_AMOUNT\" type=\"Float\"/><relation name=\"F_BANK\" type=\"String\"/><relation name=\"F_BXID\" type=\"String\"/><relation name=\"F_CODE\" type=\"String\"/><relation name=\"F_CONTENT\" type=\"String\"/><relation name=\"F_IS\" type=\"String\"/><relation name=\"F_ISRED\" type=\"String\"/><relation name=\"F_KM\" type=\"String\"/><relation name=\"F_KSSM\" type=\"String\"/><relation name=\"F_LASTAMOUNT\" type=\"Float\"/><relation name=\"F_NAME\" type=\"String\"/><relation name=\"F_REMARK\" type=\"String\"/><relation name=\"F_TAX\" type=\"Float\"/><relation name=\"F_TYPE\" type=\"String\"/><relation name=\"T_APP_JFBX_CWBXFORXM_YWLWF\" type=\"String\"/><relation name=\"calcCheckBox\" type=\"String\"/><relation name=\"version\" type=\"Integer\"/></concept></data></config>"},"createActionParam":{"action":"createT_APP_JFBX_CWBXFORXM_YWLWFAction","activity":"mainActivity","parameters":{"table":{"@type":"table","rows":[],"userdata":{"idColumnDefine":"T_APP_JFBX_CWBXFORXM_YWLWF","idColumnName":"T_APP_JFBX_CWBXFORXM_YWLWF","idColumnType":"String","model":"/rkyOA/cwgl/bmjf/data","relationAlias":"F_ACCOUNT,F_AMOUNT,F_BANK,F_BXID,F_CODE,F_CONTENT,F_IS,F_ISRED,F_KM,F_KSSM,F_LASTAMOUNT,F_NAME,F_REMARK,F_TAX,F_TYPE,version","relationTypes":"String,Float,String,String,String,String,String,String,String,String,Float,String,String,Float,String,Integer","relations":"T_APP_JFBX_CWBXFORXM_YWLWF.F_ACCOUNT,T_APP_JFBX_CWBXFORXM_YWLWF.F_AMOUNT,T_APP_JFBX_CWBXFORXM_YWLWF.F_BANK,T_APP_JFBX_CWBXFORXM_YWLWF.F_BXID,T_APP_JFBX_CWBXFORXM_YWLWF.F_CODE,T_APP_JFBX_CWBXFORXM_YWLWF.F_CONTENT,T_APP_JFBX_CWBXFORXM_YWLWF.F_IS,T_APP_JFBX_CWBXFORXM_YWLWF.F_ISRED,T_APP_JFBX_CWBXFORXM_YWLWF.F_KM,T_APP_JFBX_CWBXFORXM_YWLWF.F_KSSM,T_APP_JFBX_CWBXFORXM_YWLWF.F_LASTAMOUNT,T_APP_JFBX_CWBXFORXM_YWLWF.F_NAME,T_APP_JFBX_CWBXFORXM_YWLWF.F_REMARK,T_APP_JFBX_CWBXFORXM_YWLWF.F_TAX,T_APP_JFBX_CWBXFORXM_YWLWF.F_TYPE,T_APP_JFBX_CWBXFORXM_YWLWF.version","updateMode":"whereVersion"}}},"process":"/rkyOA/cwgl/bmjf/process/jfbx/jfbxProcess"}},"process":"/rkyOA/cwgl/bmjf/process/jfbx/jfbxProcess"}
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 com.googlecode.psiprobe.Tomcat60AgentValve.invoke(Tomcat60AgentValve.java:40)
    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: org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance
    at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:65)
    at org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:300)
    at org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:270)
    at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:236)
    at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:442)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:263)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:188)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:305)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:286)
    at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:60)
    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:88)
    ... 28 more
Caused by: java.lang.IllegalArgumentException: Name is too long: 鵝藧剿c3禇 [?a+俸兂6f?藱8懤?0蹾錻餻场?炜?h
#mC?*愅睍鋱Z欆弛瘌6忦=.Ve璳?謁%7O"椛瘃g锎F":`m~蓵4By餾?
    at org.apache.poi.hssf.record.WriteAccessRecord.setUsername(WriteAccessRecord.java:104)
    at org.apache.poi.hssf.record.WriteAccessRecord.<init>(WriteAccessRecord.java:72)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:57)
    ... 41 more


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2018-2-1 16:53:21 | 显示全部楼层
确认是不是内容导致的
excel.png
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

47

主题

102

帖子

632

积分

高级会员

Rank: 4

积分
632
QQ
 楼主| 发表于 2018-2-2 11:40:51 | 显示全部楼层
jishuang 发表于 2018-2-1 16:53
确认是不是内容导致的

确认,我用office仅仅是打开了一下之前wps编辑过的文件,没有进行任何操作,导入没有问题,
注意,是只打开看一眼,就关闭了,客户碰到过好几次,只要用office打开一下,就可以导入了,没有问题
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36069
发表于 2018-2-2 13:18:14 | 显示全部楼层
把excel文件发一下看看,本地用wps打开操作再导入都没问题
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 17:48 , Processed in 0.060485 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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