为了账号安全,请及时绑定邮箱和手机立即绑定

获取 java.lang.NoClassDefFoundError:

获取 java.lang.NoClassDefFoundError:

holdtom 2021-10-28 09:45:26
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.DocumentHelperat 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)知道发生了什么吗?
查看完整描述

3 回答

?
SMILET

TA贡献1796条经验 获得超4个赞

我遇到了同样的问题,在尝试了几次无效的“修复”之后,我有了

将以下行添加到 standalone.bat

      -jaxpmodule "javax.xml.jaxp-provider" ^

直接在 -mp "%JBOSS_MODULEPATH%" ^ 行下方


查看完整回答
反对 回复 2021-10-28
  • 3 回答
  • 0 关注
  • 579 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信