Possibly related: * Same problem using clojure: http://stackoverflow.com/questions/34237417/unable-to-open-excel-file-in-clojure-only-deflated-entries-can-have-ext-descri centic's comment: Can you share a bit of code how you call WorkbookFactory, it seems either the file that you pass is corrupted or you try to parse an XLS files as XLSX
* Same ZipException, cause was a 0-byte file: http://www.lingala.net/zip4j/forum/index.php?topic=268.0 On Sat, Dec 19, 2015 at 11:45 PM, Javen O'Neal <[email protected]> wrote: > Could you please include the Excel file that is causing this problem > and a SSCCE (short, self-contained correct example)? Without this > information, we are unable to reproduce this problem. A link to a > discussion of this problem on a Docjure forum or mailing list or an > open bug may be helpful. > > It's cool to see POI getting used in other libraries, especially > libraries written in languages other than Java (my projects that use > POI are written in Jython). The folks on this mailing list may be less > familiar with clojure, so if you're comfortable writing the SSCCE in > Java, there would be a wider audience who would be able to help. The > SSCCE should preferably directly call the POI API rather than calling > docjure which calls POI. > > A few questions: > Do you get this error using other spreadsheets with docjure? > Does the referenced spreadsheet open in a modern version of Microsoft > Excel, LibreOffice, or OpenOffice without any corruption errors? > What version of POI are you using? > Is the referenced spreadsheet password-protected? > > On Sat, Dec 19, 2015 at 11:15 PM, Finite Trade <[email protected]> > wrote: >> >> Hello, >> I am trying to open an excel 2010 file using a Clojure library that uses >> Apache POI. However, I am getting the following error: >> clj-spelling-list-parser.core> (spreadsheet/load-workbook >> "wachat_20150410.xlsx") >> clojure.core/eval core.clj: 3081 >> ... >> clj-spelling-list-parser.core/eval26754 form-init5197475672653279465.clj: 112 >> ... >> dk.ative.docjure.spreadsheet/eval4923/fn spreadsheet.clj: 79 >> dk.ative.docjure.spreadsheet/load-workbook-from-file spreadsheet.clj: 64 >> dk.ative.docjure.spreadsheet/load-workbook-from-stream spreadsheet.clj: 58 >> org.apache.poi.ss.usermodel.WorkbookFactory.create WorkbookFactory.java: 87 >> org.apache.poi.openxml4j.opc.OPCPackage.open OPCPackage.java: 272 >> org.apache.poi.openxml4j.opc.ZipPackage.<init> ZipPackage.java: 88 >> org.apache.poi.openxml4j.util.ZipInputStreamZipEntrySource.<init> >> ZipInputStreamZipEntrySource.java: 51 >> java.util.zip.ZipInputStream.getNextEntry ZipInputStream.java: 122 >> java.util.zip.ZipInputStream.readLOC ZipInputStream.java: 310 >> java.util.zip.ZipException: only DEFLATED entries can have EXT descriptor >> >> How should I fix it? >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
