Java.io.EOFException: Unexpected end of ZLIB input stream

Hi guys.

I am trying to unzip a file (a zipped directory from a remote server) using the 'jar xvf' command. The problem is, it extracts a few of the items therein and throws the below error message:

java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:140)
        at sun.tools.jar.Main.extractFile(Main.java:1072)
        at sun.tools.jar.Main.extract(Main.java:981)
        at sun.tools.jar.Main.run(Main.java:311)
        at sun.tools.jar.Main.main(Main.java:1288)

Has anyone else come across this issue? How did you fix it.

My first idea is: your jar file is corrupted.
Try to only list the contents. jar tvf or unzip -l or do a full test with unzip -t .