java.util.zip throws- oversubscribed dynamic bit lengths tree
Harsha.Godugu at Sun.COM
Mon Jun 30 15:09:15 PDT 2008
Dave Bristor wrote:
> Hi Harsha,
Unfortunately there is no stand alone reproducible test case. It
appears that 6713913 and the issue I brought up here are related. Out
of curiosity, I was looking into inflater / deflater code to see what it
means to get the ' oversubscribed dynamic bit lengths tree'. According
to the code, it's due to the jar file being not in the right format when
the error occurred. The one thing that's suspicious here is, the jar
file creation. Their build uses maven's internal code to create a jar
file on the fly. (this problem happens consistently on Solaris & mac..
with that build.) If there is a jar file (format) verifier to examine
each bit of the (created) jar, then that would help nail down this
problem. Would it also be a problem, if multiple threads accessing
(reading ) the same jar? (Or any other jar related flags that could be
enabled to check the integrity of the jar would be of help here.)
I will add the stack traces to the same bug report.
One data point to not
> Do you have a reproducible testcase? This appeared years before my
> time, see 4188883, "java.util.zip.ZipException: oversubscribed dynamic
> bit lengths tree", and was closed with the note "Irreproducible -
> probably fixed some time ago."
> Sahoo has filed 6713913, "Fatal errors during jar file processing",
> but I'm unable to reproduce the problem.
>>>> Problem: When reading large jar files programatically, we get the
>>>> following exception.
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>>>> assembling JAR
>>>> ... 16 more
>>>> Caused by: java.util.zip.ZipException: oversubscribed dynamic bit
>>>> lengths tree
>>>> at java.io.DataInputStream.readFully(DataInputStream.java:176)
>>>> at java.util.jar.JarFile.getBytes(JarFile.java:364)
>>>> at java.util.jar.JarFile.getManifestFromReference(JarFile.java:157)
>>>> at java.util.jar.JarFile.getManifest(JarFile.java:145)
More information about the core-libs-dev