You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2019/07/01 15:17:33 UTC

[Bug 60832] export xlsx file sometimes can not open using ms office

https://bz.apache.org/bugzilla/show_bug.cgi?id=60832

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED

--- Comment #8 from Dominik Stadler <do...@gmx.at> ---
I tried to take a look at the ERROR.xlsx, but the file is an invalid ZIP file,
so it seems the process which created this file somehow corrupted the whole
zip. 

Exception in thread "main" java.io.IOException: central directory is empty,
can't expand corrupt archive.
        at
org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:528)
        at
org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:216)
        at
org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:192)
        at
org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:153)
        at
org.apache.poi.openxml4j.util.ZipSecureFile.<init>(ZipSecureFile.java:122)
        at
org.apache.poi.openxml4j.opc.internal.ZipHelper.openZipFile(ZipHelper.java:205)
        at
org.apache.poi.ooxml.dev.OOXMLPrettyPrint.handleFile(OOXMLPrettyPrint.java:90)
        at
org.apache.poi.ooxml.dev.OOXMLPrettyPrint.main(OOXMLPrettyPrint.java:81)


So I don't think we can do much more here unless we know more about how the
file is produced.

If you still have this problem and can provide a more isolated test-case then
please reopen this issue and attach the test-case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org