获取 java.lang.NoClassDefFoundError:

15 到 poi 4.0.0。这是我对类路径的 poi 依赖项。


poi-4.0.0 poi-scratchpad-4.0.0 poi-ooxml-4.0.0 poi-ooxml-schemas-4.0.0 xmlbeans-3.0.1


当我尝试关闭工作簿时出现异常


Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.ooxml.util.DocumentHelper

at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.save(ContentTypeManager.java:428)

at org.apache.poi.openxml4j.opc.ZipPackage.saveImpl(ZipPackage.java:518)

at org.apache.poi.openxml4j.opc.OPCPackage.save(OPCPackage.java:1493)

at org.apache.poi.openxml4j.opc.OPCPackage.close(OPCPackage.java:453)

at org.apache.poi.ooxml.POIXMLDocument.close(POIXMLDocument.java:204)

at org.apache.poi.xssf.usermodel.XSSFWorkbook.close(XSSFWorkbook.java:590)

at org.apache.poi.xssf.streaming.SXSSFWorkbook.close(SXSSFWorkbook.java:912)

at com.seqnc.fe.excel.ExcelConversionServiceImpl.generateStream(ExcelConversionServiceImpl.java:235)

at com.seqnc.fe.excel.ExcelConversionServiceImpl.generateStream(ExcelConversionServiceImpl.java:124)

at com.seqnc.ui.executors.graph.EvaluateGraphExecutor.executeCompanyDivisionOperation(EvaluateGraphExecutor.java:188)

at com.seqnc.ui.executors.DefaultExecutor.execute(DefaultExecutor.java:299)

at com.seqnc.ui.controller.SeqncController.executeRequest(SeqncController.java:89)

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:498)


知道发生了什么吗?


holdtom
浏览 580回答 3
3回答

SMILET

我遇到了同样的问题,在尝试了几次无效的“修复”之后,我有了将以下行添加到 standalone.bat      -jaxpmodule "javax.xml.jaxp-provider" ^直接在 -mp "%JBOSS_MODULEPATH%" ^ 行下方
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java