https://bz.apache.org/bugzilla/show_bug.cgi?id=58760
Bug ID: 58760
Summary: Unable to read xlsx file (open OPCPackage) after
upgrading to version 3.13 from 3.10.1
Product: POI
Version: 3.13-FINAL
Hardware: All
OS: All
Status: NEW
Severity: blocker
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
This is basically the code i'm running to open the woorkbook:
try (WriterOutputStream baos = new WriterOutputStream(output)) {
try (PrintStream ps = new PrintStream(baos)) {
// The package open is instantaneous, as it should be.
try (OPCPackage p = OPCPackage.open(file, PackageAccess.READ))
{
and getting:
Exception in thread "main"
org.apache.poi.openxml4j.exceptions.InvalidFormatException: The part
/xl/sharedStrings.xml 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:254)
This code and file were working fine with poi version 3.10.1
--
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]