EVALUATION
As Jon pointed out in the comment, the problem is the openArchive method in DefaultFileManager.java. It does this:
try {
:
if (!useZipFileIndex) {
zdir = new ZipFile(zipFileName);
}
:
} catch (FileNotFoundException ex) {
archive = new MissingArchive(zipFileName);
} catch (IOException ex) {
log.error("error.reading.file", zipFileName, ex.getLocalizedMessage());
archive = new MissingArchive(zipFileName);
}
The problem is that new ZipFile(...) doesn't throw a FileNotFoundException if the file does not exist, instead, it throws a java.util.zip.ZipException, so that the log.error is executed.
|