You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2004/05/28 02:06:08 UTC
DO NOT REPLY [Bug 29262] New: -
org.apache.poi.hssf.record.FormatRecord.field_1_index_code has value of -1.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29262>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29262
org.apache.poi.hssf.record.FormatRecord.field_1_index_code has value of -1.
Summary: org.apache.poi.hssf.record.FormatRecord.field_1_index_co
de has value of -1.
Product: POI
Version: 2.0FINAL
Platform: All
URL: http://tonto.eia.doe.gov/oog/ftparea/wogirs/xls/psw14.xl
s
OS/Version: Windows XP
Status: NEW
Severity: Critical
Priority: Other
Component: HSSF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: lonny@ze.com
Description:
It appears that the field_1_index_code field in the
org.apache.poi.hssf.record.FormatRecord class can attain a value of -1.
This causes the HSSFDataFormat to throw an ArrayIndexOutOfBoundsException on
line 109 because the FormatRecord’s field_1_index_code field is used as an
index into a Vector where all the FormatRecords for the workbook are stored.
Steps to Reproduce:
Open the file: http://tonto.eia.doe.gov/oog/ftparea/wogirs/xls/psw14.xls and an
ArrayIndexOutOfBoundsException is thrown on line 109 of HSSFDataFormat.
This error occurs for version 2.0 and 2.5
Notes:
The format record is read in and is stored to the Workbook on line 192 of the
org.apache.poi.hssf.model.Workbook.java.
BackGround:
After reading the OpenOffice document for FormatRecord,
http://sc.openoffice.org/excelfileformat.pdf, it appears that -1 is an invalid
index for a Format Record but I am not sure if the -1 is caused from HSSF
incorrectly reading the Excel File or if the actual FormatRecord is stored with
an index of -1.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org