2
« on: May 05, 2017, 01:51:47 PM »
Hello,
I was using the zip4j (v1.3.2) fine on windows 10 (running in an tomcat 8.5.5)
and the ZipFile::extractFile worked fine.
Now after finishing everything, I deployed my webapp to an debian (6.0.10) running tomcat 8.0.9 but now I get
net.lingala.zip4j.exception.ZipException: Expected central directory entry not found (#1)
at net.lingala.zip4j.core.HeaderReader.readCentralDirectory(HeaderReader.java:224) ~[HeaderReader.class:?]
at net.lingala.zip4j.core.HeaderReader.readAllHeaders(HeaderReader.java:94) ~[HeaderReader.class:?]
at net.lingala.zip4j.core.ZipFile.readZipInfo(ZipFile.java:425) ~[ZipFile.class:?]
at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:622) ~[ZipFile.class:?]
at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:587) ~[ZipFile.class:?]
at net.lingala.zip4j.core.ZipFile.extractFile(ZipFile.java:566) ~[ZipFile.class:?]
using the same files I did so many tests ago (they are downloaded from a public FTP server)
Do you know if there are any pitfalls? I will test it on another server with different OS and tomcat version, but if someone knows what could be responsible for the exception I would be glad.
Thank you