java.util.zip throws- oversubscribed dynamic bit lengths tree
Harsha Godugu
Harsha.Godugu at Sun.COM
Mon Jun 30 22:09:15 UTC 2008
Dave Bristor wrote:
> Hi Harsha,
Hi Dave,
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.
thanks,
Harsha
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.
>
> Thanks,
> Dave
>
>>>> thanks,
>>>> Harsha
>>>>
>>>>
>>>> Problem: When reading large jar files programatically, we get the
>>>> following exception.
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>>>> assembling JAR
>>>> at
>>>> com.sun.enterprise.module.maven.PackageMojo.createArchive(PackageMojo.java:183)
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.PackageMojo.execute(PackageMojo.java:193)
>>>>
>>>> at
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>>>>
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>>>
>>>> ... 16 more
>>>> Caused by: java.util.zip.ZipException: oversubscribed dynamic bit
>>>> lengths tree
>>>> at
>>>> java.util.zip.InflaterInputStream.read(InflaterInputStream.java:140)
>>>> 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)
>>>> at
>>>> com.sun.enterprise.module.common_impl.Jar$Archive.getManifest(Jar.java:172)
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.Packager.configureManifest(Packager.java:126)
>>>>
>>>> at
>>>> com.sun.enterprise.module.maven.PackageMojo.createArchive(PackageMojo.java:168)
>>>>
>>>
>>
More information about the core-libs-dev
mailing list