https://issues.apache.org/bugzilla/show_bug.cgi?id=53576
--- Comment #4 from olivier57 <[email protected]> --- Hi, I'm using 3.9 with Eclipse Juno to read Excel files and get the same problem. It works with Eclipse but not in jar files in the Appian Environment. fileName="C:\\myfold\\test2.xlsx"; log("file " + fileName ); File file = new File(fileName); OPCPackage opcPackage; XSSFWorkbook myWorkbook = null; opcPackage = OPCPackage.open(file); myWorkbook=new XSSFWorkbook(opcPackage); <== Exception opcPackage.close(); org.apache.poi.openxml4j.exceptions.InvalidFormatException: Can't read content types part ! at org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(ContentTypeManager.java:107) at org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(ZipContentTypeManager.java:56) at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:167) at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:662) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:248) at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:200) at com.solypse.etde.SolImportExcel.ReadFile(SolImportExcel.java:186) at com.solypse.etde.SolImportExcel.run(SolImportExcel.java:104) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
