Bug 47252

Summary: NegativeArraySizeException EscherBSERecord
Product: POI Reporter: Jonathan Holloway <jonathan.holloway>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jonathan.holloway
Priority: P2    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Jonathan Holloway 2009-05-22 11:55:10 UTC
I get the following exception for a record in a spreadsheet when I run BiffViewer.

[java] Offset=0x00000BEE(3054) recno=112 sid=0x01C1 size=0x0008(8)
     [java] [UNKNOWNRECORD] (0x1C1)
     [java]   rawData=[C1, 01, 00, 00, 80, 38, 01, 00]
     [java] [/UNKNOWNRECORD]
     [java] 
     [java] java.lang.NegativeArraySizeException
     [java]     at org.apache.poi.ddf.EscherBSERecord.fillFields(EscherBSERecord.java:84)
     [java]     at org.apache.poi.ddf.EscherContainerRecord.fillFields(EscherContainerRecord.java:53)
     [java]     at org.apache.poi.ddf.EscherContainerRecord.fillFields(EscherContainerRecord.java:53)
     [java]     at org.apache.poi.hssf.record.AbstractEscherHolderRecord.convertToEscherRecords(AbstractEscherHolderRecord.java:82)
     [java]     at org.apache.poi.hssf.record.AbstractEscherHolderRecord.<init>(AbstractEscherHolderRecord.java:68)
     [java]     at org.apache.poi.hssf.record.DrawingGroupRecord.<init>(DrawingGroupRecord.java:41)
     [java]     at org.apache.poi.hssf.dev.BiffViewer.createRecord(BiffViewer.java:149)
     [java]     at org.apache.poi.hssf.dev.BiffViewer.createRecords(BiffViewer.java:84)
     [java]     at org.apache.poi.hssf.dev.BiffViewer.main(BiffViewer.java:398)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Please let me know if you need any more info.
Comment 1 Yegor Kozlov 2009-05-23 00:00:41 UTC
Can you attach the problem file?

Yegor
Comment 2 Dominik Stadler 2013-08-05 09:41:25 UTC
no response in a long time => resolving for now, please reopen with more information if this is still an issue