Bug 31894

Summary: Problems reading combo box fieds
Product: POI Reporter: Artur Hubert <ahxyz>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 2.5-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: MS Excel file having combo boxes.

Description Artur Hubert 2004-10-26 12:35:41 UTC
I use HSSF for Reading .xls file (2002-2003). In my excel files I have combo 
box fields. The error occurs, if one of combo box fields is activated and the 
my programm trys to read the file.  So if one of these fields is selected in a 
worksheet you are not able to read this workbook. 
Even if you close the file the error remains.

Thanks Artur

The exception I get is:
java.lang.reflect.InvocationTargetException: 
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at org.apache.poi.hssf.record.UnknownRecord.<init>
(UnknownRecord.java:62)
	at org.apache.poi.hssf.record.SubRecord.createSubRecord
(SubRecord.java:57)
	at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
	at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
	at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
	at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
	at java.lang.reflect.Constructor.newInstance(Native Method)
	at org.apache.poi.hssf.record.RecordFactory.createRecord
(RecordFactory.java:224)
	at org.apache.poi.hssf.record.RecordFactory.createRecords
(RecordFactory.java:160)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:163)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:130)
Comment 1 Jason Height 2004-10-26 22:20:14 UTC
Please attach the spreadhseet using the "Create a new attachment" hyperlink.

This makes it much easier to debug.

Jason
Comment 2 Artur Hubert 2004-10-27 07:03:07 UTC
Created attachment 13233 [details]
MS Excel file having combo boxes.
Comment 3 Jason Height 2005-08-26 04:08:45 UTC
Works with the current version in HEAD.

Jason