https://issues.apache.org/bugzilla/show_bug.cgi?id=55692
Bug ID: 55692
Summary: POI crashes with ....a BIFF8 'Workbook' entry. Is it
really an excel file?
Product: POI
Version: 3.9
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: POIFS
Assignee: [email protected]
Reporter: [email protected]
Created attachment 30955
--> https://issues.apache.org/bugzilla/attachment.cgi?id=30955&action=edit
This is the xlsx that crashes
I have an xlsx file which I can open perfectly fine using Excel 2010. However,
POI crashes with the following message. If I open the file and re-save it, the
crash goes away. See the attached xlsx file. Interestingly, HSSF (not XSSF) is
invoked by the WorkbookFactory.
Additional clues to reproducing the issue:
1. Started with an xls file -> NO crash -> I can e-mail this to someone -> 1.7
MB, can't upload it, and can't upload multiple attachments.
2. I saved it once as xls (no content changed) -> NO crash
3. I "Save As" xlsx (no content changed)-> CRASHES(attached)
4. If I open the xlsx and save it again (no content changes) -> NO crash.
If I skip step 2, the crash does NOT happen.
==========================================================================
java.lang.IllegalArgumentException: The supplied POIFSFileSystem does not
contain a BIFF8 'Workbook' entry. Is it really an excel file?
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getWorkbookDirEntryName(HSSFWorkbook.java:222)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:263)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:243)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:187)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:322)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:303)
at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:70)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]