Java.Util.Zip.Zipexception When Unziping A File On Dbfs Through A Java Program (Doc ID 1302073.1)

Last updated on OCTOBER 27, 2011

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

When running java app which uses java utility java.util.zip.ZipFile to access a zip file on a DBFS mount point the process fails with following

mmap failed for CEN and END part of zip file
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFIle.<init>(ZipFile.java:131)
...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms