#4 can extract, but can't list some jar/zip files

bug
closed
nobody
None
8
2007-02-06
1999-12-07
Bryan Burns
No

fastjar -tf <file> complains about malformed header, but -xf will extract the files.

Discussion

  • Bryan Burns
    Bryan Burns
    1999-12-07

    • priority: 5 --> 8
    • labels: 100100 --> 100100
     
  • I see this problem also on most jarfiles. The exact error message I get when I do fastjar -tf [file] is:

    "Error in JAR file format. zip-style comment?"

    Exit status code is 1.

     
  • Adrian Robert
    Adrian Robert
    2001-08-17

    Logged In: YES
    user_id=146959

    This problem (which persists in v0.93) can be seen clearly
    when examining the jar in emacs archive mode. It shows that
    a "^A^Z" (control-A,control-Z) sequence is appended to
    certain class names. This prevents most classloaders from
    finding the class. It appears to occur randomly (though
    there may be some system to it), so that the chance of
    rendering a class inaccessible is larger for larger jars.

     
  • Wil Mahan
    Wil Mahan
    2005-08-28

    Logged In: YES
    user_id=613983

    I also noticed this error, and I think it is caused by zipfile comments as the error message suggests. I have submitted patch 1275036, which fixes the problem for me.

     
  • Bryan Burns
    Bryan Burns
    2007-02-06

    • status: open --> closed