07 版本可以导入 03 导入报错
按照老师的步骤 03可以导入,接着 处理07版本 就会导致07版本可以导入成功,再导入03就报错了。 运行老师的代码也是存在同样的问题 03不能导入了。
异常信息如下:
HTTP Status 500 – Internal Server Error Type Exception Report Message The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF) Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception org.apache.poi.openxml4j.exceptions.OLE2NotOfficeXmlFileException: The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF) org.apache.poi.openxml4j.opc.internal.ZipHelper.verifyZipHeader(ZipHelper.java:184) org.apache.poi.openxml4j.opc.internal.ZipHelper.openZipStream(ZipHelper.java:241) org.apache.poi.openxml4j.opc.ZipPackage.<init>(ZipPackage.java:98) org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:324) org.apache.poi.util.PackageHelper.open(PackageHelper.java:37) org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:116) org.imooc.service.WordService.imp(WordService.java:46) org.imooc.servlet.ImportWordServlet.doPost(ImportWordServlet.java:34) javax.servlet.http.HttpServlet.service(HttpServlet.java:661) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) Note The full stack trace of the root cause is available in the server logs. Apache Tomcat/8.0.0
47
收起
正在回答 回答被采纳积分+1
1回答
Java Web基础入门2018版
- 参与学习 716 人
- 提交作业 185 份
- 解答问题 1363 个
会Java?懂前端基础?想学后台开发?那么,赶快来学习《Java Web入门》路径吧。本路径主要介绍Java Web的基础知识,并配有大量案例,定会让你收获多多!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星