question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zt-zip fails to unpack some jar

See original GitHub issue

Hello,

When trying to unpack this jar, zt-zip crashes with the following stacktrace:

Caused by: org.zeroturnaround.zip.ZipException: java.util.zip.ZipException: bad extra field starting at 9.  Block length of 49135 bytes exceeds remaining data of 4 bytes.
    at org.zeroturnaround.zip.ZipEntryUtil.getZTFilePermissions (ZipEntryUtil.java:202)
    at org.zeroturnaround.zip.ZipUtil$Unpacker.process (ZipUtil.java:1182)
    at org.zeroturnaround.zip.ZipUtil.iterate (ZipUtil.java:508)
    at org.zeroturnaround.zip.ZipUtil.iterate (ZipUtil.java:472)
    at org.zeroturnaround.zip.ZipUtil.unpack (ZipUtil.java:996)

I have no problem unzipping this file with any desktop tool, or if I implement the unzip myself based on ZipInputStream.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
toomasrcommented, Mar 5, 2022

I’ve released 1.15. Your issue should be fixed now.

0reactions
slandellecommented, Mar 5, 2022

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - zeroturnaround/zt-zip
Unpacking. Check if an entry exists in a ZIP archive. boolean exists = ZipUtil.
Read more >
Okay, Unzip Jar, Zip Jar Success! But unzipping it again Fails?
Steps I took: 1. Unzipped the jar with success 2. Zipped the jar with success 3. Unzipped again to find all those errors....
Read more >
org.zeroturnaround.zip.ZipUtil.unpack java code examples
Unpacks a ZIP file to the given directory. * <p> * The output directory must not be a file. * * @param zip...
Read more >
Java Examples for org.zeroturnaround.zip.ZipUtil - Javatips.net
This java examples will help you to understand the usage of org.zeroturnaround.zip.ZipUtil. These source code samples are taken from different open source ...
Read more >
Meet ZT-ZIP, Open Source Zip Library For Java - JRebel
The exploded deployments need to be compressed before any sending can happen. We spent some time looking at different libraries out there, but ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found