Hi all,

i'm trying to get all properties of a compound document.
This works well with my testfiles, 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, or if this testfile is defect.
The testfile(ueberschrift.xls) 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 );
//...Code to read the properties

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)

Attachment: ueberschrift.xls
Description: application/excel

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to