Bug 62571 - InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$1 is not implementing InputStreamStatistics
Summary: InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$...
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 4.0.x-dev
Hardware: Macintosh Mac OS X 10.1
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2018-07-26 09:08 UTC by prampec+apache
Modified: 2018-07-26 12:32 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description prampec+apache 2018-07-26 09:08:02 UTC
It seams, we have runtime issues after commons-compress was introduced (because of Java10 reasons).
Might be in connection with issue [https://bz.apache.org/bugzilla/show_bug.cgi?id=62187],
and fix [https://svn.apache.org/viewvc?view=revision&revision=1832789]

Running with with Java 10.0.2

Stack trace:
java.lang.IllegalArgumentException: InputStream of class class org.apache.commons.compress.archivers.zip.ZipFile$1 is not implementing InputStreamStatistics.
     [java]     at org.apache.poi.openxml4j.util.ZipArchiveThresholdInputStream.<init>(ZipArchiveThresholdInputStream.java:63)
     [java]     at org.apache.poi.openxml4j.util.ZipSecureFile.getInputStream(ZipSecureFile.java:147)
     [java]     at org.apache.poi.openxml4j.util.ZipSecureFile.getInputStream(ZipSecureFile.java:34)
     [java]     at org.apache.poi.openxml4j.util.ZipFileZipEntrySource.getInputStream(ZipFileZipEntrySource.java:66)
     [java]     at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:255)
     [java]     at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:725)
     [java]     at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:238)
Comment 1 Andreas Beeker 2018-07-26 09:30:24 UTC
My first idea was, there's an older commons-compress in the classpath.

Please help us reproduce this issue, as we also do build-checks with Java 10 [1]
Is this invocation from a small standalone programm?
Please provide it + the dependencies.

[1] https://builds.apache.org/view/P/view/POI/job/POI-DSL-1.10/
Comment 2 prampec+apache 2018-07-26 09:59:09 UTC
commons-compress 1.17 was used.
Currently this is part of a huge application, but I might try to synthesize the problem.
Comment 3 prampec+apache 2018-07-26 12:32:45 UTC
Sorry my bad. I have missed something. Please ignore this.