poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55692] New: POI crashes with ....a BIFF8 'Workbook' entry. Is it really an excel file?
Date Wed, 23 Oct 2013 02:21:53 GMT

            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: dev@poi.apache.org
          Reporter: bearbalu@hotmail.com

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.<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)

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

View raw message