On Thu, 5 Nov 2015, Jonathan Hodges wrote:
When I attempt to open an Excel file (.xlsx) file I receive the
following stack trace.
org.apache.poi.openxml4j.exceptions.InvalidFormatException: The part
/_rels/.rels does not have any content type ! Rule: Package require content
types when retrieving a part from a package. [M.1.14]
at
org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:247)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:684)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275)
Looks like a broken / invalid file to me. Do you know where it comes from?
Perhaps generated by a non-Excel system?
If you open the file in Excel, do a save-as, does the resaved file work
properly?
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]