问题描述
- 试图用java从excel文件中读取数据时出现的问题
-
org.apache.poi.POIXMLException: org.apache.poi.openxml4j.exceptions.InvalidFormatException: OPC Compliance error [M4.1]: there is more than one core properties relationship in the package !
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:41)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:190)
at Importexcel1.read(Importexcel1.java:165)
at Importexcel1.read(Importexcel1.java:134)
at Importexcel1.main(Importexcel1.java:253)
Caused by: org.apache.poi.openxml4j.exceptions.InvalidFormatException: OPC Compliance error [M4.1]: there is more than one core properties relationship in the package !
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:611)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:226)
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:39)
... 4 more求问,这一段是什么意思呢?
解决方案
ddddddddddddddddddddddddddddddddddddddddddddddd
解决方案二:
倒错包了。还有你的XSSFWorkbook是仅支持xmlx格式的excel,不支持xml格式的
解决方案三:
弄错包了吧。记得是workbook之类的
时间: 2024-11-03 21:16:36