https://issues.apache.org/bugzilla/show_bug.cgi?id=45698
Summary: LinkTable fails to read properly with multiple
EXTERNSHEET records
Product: POI
Version: 3.0-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P4
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
This bugzilla was created as a follow-on from:
http://www.nabble.com/Error-opening-a-Excel-File-tp19083161p19162369.html
The attached xls file has several EXTERNSHEET records present where single one
should have been written. POI throws an exception when attempting to read the
file:
Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException:
Error reading bytes
at
org.apache.poi.hssf.record.RecordInputStream.nextRecord(RecordInputStream.java:115)
at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:123)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:246)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:169)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:151)
...
Excel (2007) opens the file without obvious error.
When the file is re-saved by Excel, POI read it without throwing an exception.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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]