You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Kadir Alaca <ka...@pixelboxx.de> on 2002/12/04 11:54:19 UTC

ArrayIndexOutOfBoundsException

Hi all,

i'm trying to get all properties of a compound document.
This works well but i have an ArrayIndexOutOfBoundsException with one of my testfiles.
Now i don't know if this is a failures by mine or by the POI-Library.
The testfile is attached.
Can anyone help?

Thanks, Kadir Alaca.



CODE:
   private String poiDocDocSummInfo = "\005DocumentSummaryInformation";
//...
105.        DocumentEntry docEntryDocSummInfo = (DocumentEntry)root.getEntry(poiDocDocSummInfo);
106.        DocumentInputStream streamDocSummInfo = new DocumentInputStream( docEntryDocSummInfo );
107.        PropertySet propSetDocSummInfo = new PropertySet( streamDocSummInfo );
108.        DocumentSummaryInformation docSummInfo = new DocumentSummaryInformation( propSetDocSummInfo );

EXCEPTION:
java.lang.ArrayIndexOutOfBoundsException: 7930330
     at org.apache.poi.hpsf.Property.readDictionary(Property.java:315)
     at org.apache.poi.hpsf.Property.<init>(Property.java:165)
     at org.apache.poi.hpsf.Section.<init>(Section.java:218)
     at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:451)
     at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:265)
     at poiproperties.CompoundDocument.<init>(CompoundDocument.java:107)
     at poiproperties.CompoundDocument.<init>(CompoundDocument.java:121)
     at poiproperties.POIProperties.<init>(POIProperties.java:52)
     at poiproperties.POIProperties.main(POIProperties.java:91)