https://issues.apache.org/bugzilla/show_bug.cgi?id=55982
Bug ID: 55982
Summary: ClassCastException from BOFRecord to TabIdRecord
Product: POI
Version: 3.10-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31188
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31188&action=edit
Excel file which produces the exception
This exception happens when trying to clone the Second sheet in the Workbook. I
can modify it (inserting contents, saving) but if I want to clone and prepend
this "empty" sheet, a ClassCastException is thrown.
java.lang.ClassCastException: org.apache.poi.hssf.record.BOFRecord cannot be
cast to org.apache.poi.hssf.record.TabIdRecord
at
org.apache.poi.hssf.model.InternalWorkbook.fixTabIdRecord(InternalWorkbook.java:732)
at
org.apache.poi.hssf.model.InternalWorkbook.checkSheets(InternalWorkbook.java:687)
at
org.apache.poi.hssf.model.InternalWorkbook.setSheetName(InternalWorkbook.java:524)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.cloneSheet(HSSFWorkbook.java:717)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.cloneSheet(HSSFWorkbook.java:85)
--
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]