Summary: | HSSF cannot read excel file, Record size problems | ||
---|---|---|---|
Product: | POI | Reporter: | Rainer Schwarze <rsc> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: |
Excel file with unexpected record sizes
Test case |
Description
Rainer Schwarze
2007-06-13 04:49:08 UTC
Created attachment 20338 [details]
Excel file with unexpected record sizes
This excel file is not in OLE2-format, to read it with HSSF one needs to wrap
it inside a POIFSFileSystem.
Created attachment 20339 [details]
Test case
Tried the example+test file in POI 3.1-beta1. First crash is in DimensionsRecord, where POI expects to read 14 bytes but only gets 10. That's a strong hint that the actual document is really BIFF3-BIFF5 format. You suggested that several records are shorter than expected, which tends to support this conclusion. Setting the workbook stream name to "Workbook" (which would indicate BIFF8) is not enough. POI can only read spreadsheets that *fully* meet the BIFF8 spec. (No, bug 42564 was unrelated. It was predominantly about ArrayPtg encoding issues) |