You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/02/20 15:27:43 UTC
[Bug 53576] docx file Can't read content types part !
https://issues.apache.org/bugzilla/show_bug.cgi?id=53576
--- Comment #4 from olivier57 <bu...@noetika.com> ---
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org