-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
1.4.2
-
Cause Known
-
x86
-
windows_xp
Name: jl125535 Date: 09/22/2004
A DESCRIPTION OF THE REQUEST :
When java.util.zip.ZipFile parses a corrupt jar or zip file, a typical result is an error message like the one below. It would be more helpful if the error message stated that the jar or zip file appears to be corrupt.
<ERROR_MESSAGE>
An exception has occurred in the compiler (1.5.0-rc). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.InternalError: jzentry == 0,
jzfile = 74342920,
total = 212,
name = Q:\projects\3rdparty\antlr-2.7.4\antlr.jar,
i = 1,
message = couldn't read CEN extra
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:427)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:413)
at com.sun.tools.javac.jvm.ClassReader.openArchive(ClassReader.java:1442)
...
</ERROR_MESSAGE>
JUSTIFICATION :
The current error message implies that the best course of action is to submit a bug report. But as evidenced by the Evaluation of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4977607, it is faster and more effective to replace the offending file.
(Incident Review ID: 311444)
======================================================================
A DESCRIPTION OF THE REQUEST :
When java.util.zip.ZipFile parses a corrupt jar or zip file, a typical result is an error message like the one below. It would be more helpful if the error message stated that the jar or zip file appears to be corrupt.
<ERROR_MESSAGE>
An exception has occurred in the compiler (1.5.0-rc). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.InternalError: jzentry == 0,
jzfile = 74342920,
total = 212,
name = Q:\projects\3rdparty\antlr-2.7.4\antlr.jar,
i = 1,
message = couldn't read CEN extra
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:427)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:413)
at com.sun.tools.javac.jvm.ClassReader.openArchive(ClassReader.java:1442)
...
</ERROR_MESSAGE>
JUSTIFICATION :
The current error message implies that the best course of action is to submit a bug report. But as evidenced by the Evaluation of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4977607, it is faster and more effective to replace the offending file.
(Incident Review ID: 311444)
======================================================================
- relates to
-
JDK-5032358 "java.util.zip.ZipException: The system cannot find the file specified"
- Resolved