Bug 47252 - NegativeArraySizeException EscherBSERecord
Summary: NegativeArraySizeException EscherBSERecord
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.5-dev
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2009-05-22 11:55 UTC by Jonathan Holloway
Modified: 2013-08-05 09:41 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
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.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?

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