https://bz.apache.org/bugzilla/show_bug.cgi?id=57994
Bug ID: 57994
Summary: POI fails to open formatted XLS file
Product: POI
Version: 3.12-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 32789
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32789&action=edit
Problem file
Attempt to open the file attached results in the following exception:
java.lang.RuntimeException: Unexpected record type
(org.apache.poi.hssf.record.StringRecord)
at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.<init>(RowRecordsAggregate.java:97)
at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:166)
at org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:121)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:311)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:264)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:199)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:342)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:323)
Excel opens the file fine. Also, if you open it in Excel and save it without
any explicit changes, POI will read it fine too.
--
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]