freemaker生成的word 不能转成html,应该是不是标准的word,怎么办?

qq_33248357 2018-05-24 05:10:51
错误信息:
18/05/24 16:57:37 org.apache.poi.poifs.filesystem.NotOLE2FileException: The supplied data appears to be a raw XML file. Formats such as Office 2003 XML are not supported
18/05/24 16:57:37 at org.apache.poi.poifs.storage.HeaderBlock.<init>(HeaderBlock.java:158)
18/05/24 16:57:37 at org.apache.poi.poifs.storage.HeaderBlock.<init>(HeaderBlock.java:140)
18/05/24 16:57:37 at org.apache.poi.poifs.filesystem.NPOIFSFileSystem.<init>(NPOIFSFileSystem.java:302)
18/05/24 16:57:37 at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:87)
18/05/24 16:57:37 at org.apache.poi.hwpf.HWPFDocumentCore.verifyAndBuildPOIFS(HWPFDocumentCore.java:109)
18/05/24 16:57:37 at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:145)
18/05/24 16:57:37 at com.strategy.common.WordUtils.PoiWord03ToHtml(WordUtils.java:445)
18/05/24 16:57:37 at com.strategy.ess.shprpf.ShprpfAction.incomedownload(ShprpfAction.java:381)
18/05/24 16:57:37 at com.strategy.ess.shprpf.ShprpfAction.chooseload(ShprpfAction.java:106)
18/05/24 16:57:37 at com.strategy.ess.shprpf.ShprpfAction.execute(ShprpfAction.java:64)
18/05/24 16:57:37 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
18/05/24 16:57:37 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
18/05/24 16:57:37 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
18/05/24 16:57:37 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
18/05/24 16:57:37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
18/05/24 16:57:37 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
18/05/24 16:57:37 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
18/05/24 16:57:37 at com.prolease.ess.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
18/05/24 16:57:37 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
18/05/24 16:57:37 at com.prolease.hr.util.HrPermissionFilter.doFilter(HrPermissionFilter.java:61)
18/05/24 16:57:37 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
18/05/24 16:57:37 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
18/05/24 16:57:37 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
18/05/24 16:57:37 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
18/05/24 16:57:37 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
18/05/24 16:57:37 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
18/05/24 16:57:37 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
18/05/24 16:57:37 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
18/05/24 16:57:37 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
18/05/24 16:57:37 at java.lang.Thread.run(Thread.java:619)
...全文
1310 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
嘴角笑意& 2021-05-13
  • 打赏
  • 举报
回复
你好,请问解决了吗?

50,336

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧