Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting jar file: Unexpected end of input stream #194

Closed
Frank-Buettner-Knowis opened this issue May 27, 2020 · 2 comments
Closed

Extracting jar file: Unexpected end of input stream #194

Frank-Buettner-Knowis opened this issue May 27, 2020 · 2 comments
Assignees
Labels
bug Something isn't working resolved

Comments

@Frank-Buettner-Knowis
Copy link

Hi,

we want to extract a "ordinary" jar file. With version 1.3.3 it's working like a charm. From version 2.0 on we get a

net.lingala.zip4j.exception.ZipException: Could not read corresponding local file header for file header: META-INF/MANIFEST.MF

With verion 2.6.0, it's a

java.io.EOFException: Unexpected end of input stream

This is the code

ZipFile zipFile = new ZipFile(JAR_FILE_NAME);
Path tempDirectory = Files.createTempDirectory(null);
tempDirectory.toFile().deleteOnExit();
zipFile.extractAll(tempDirectory.toString());

You can use your own jar for reproducing the issue.

@srikanth-lingala
Copy link
Owner

Issue fixed. Will include the fix in the next release.

@srikanth-lingala
Copy link
Owner

Fix included in v2.6.1 released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants