JDK-8068230 : java.util.zip.Deflater.init throws InternalError
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6u95,7,7u80
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: solaris_11
  • Submitted: 2014-12-24
  • Updated: 2015-02-18
  • Resolved: 2015-02-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7-poolResolved
Related Reports
Relates :  
Description
Issue is reproduced only with 64-bit fastdebug binaries

$ jdk/bin/java -showversion -d64 Test
java version "1.7.0_80-ea-fastdebug"
Java(TM) SE Runtime Environment (build 1.7.0_80-ea-fastdebug-langtools-nightly-h1958-20141223-b04-b04)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b07-fastdebug, mixed mode)

Exception in thread "main" java.lang.InternalError
        at java.util.zip.Deflater.init(Native Method)
        at java.util.zip.Deflater.<init>(Deflater.java:171)
        at java.util.zip.Deflater.<init>(Deflater.java:188)
        at Test.main(Test.java:5)

Comments
[~bmoloden] The fix for JDK-8008759 went into 7u80-b05. Could you please check that this issue is gone, so that it can be closed as a duplicate of JDK-8008759?
22-01-2015

JDK-8008759 was backported to 7u. The error message was improved in JDK-8068338
09-01-2015

It would be good to back-port JDK-8008759 to 7uX and see if this issue still duplicates.
28-12-2014

One possible cause of the failure might be wrong version of zlib installed on the host. InternalException might have been thrown, if deflateInit2() had returned Z_VERSION_ERROR. http://tvp129231.uk.oracle.com:8080/source/xref/jdk7u-dev/jdk/src/share/native/java/util/zip/Deflater.c#72 I suppose, we may have a better message created in that case, given how many noise it causes.
25-12-2014