Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5105554

RFE: More specific error message when a jar or zip is corrupt

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jleesunw Jon Lee (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: