https://issues.apache.org/bugzilla/show_bug.cgi?id=54233
Bug ID: 54233
Summary: When attached testing code is executed against the
attached document, it generates the exception here
under.
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: HPSF
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 29666
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29666&action=edit
Java test to generate exception
When attached testing example is executed against the attached document, it
generates the exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.poi.util.LittleEndian.getByteArray(LittleEndian.java:72)
at org.apache.poi.hpsf.UnicodeString.<init>(UnicodeString.java:44)
at
org.apache.poi.hpsf.TypedPropertyValue.readValue(TypedPropertyValue.java:162)
at org.apache.poi.hpsf.Vector.read(Vector.java:74)
at
org.apache.poi.hpsf.TypedPropertyValue.readValue(TypedPropertyValue.java:218)
at org.apache.poi.hpsf.VariantSupport.read(VariantSupport.java:163)
at org.apache.poi.hpsf.Property.<init>(Property.java:164)
at org.apache.poi.hpsf.Section.<init>(Section.java:277)
at org.apache.poi.hpsf.PropertySet.init(PropertySet.java:451)
at org.apache.poi.hpsf.PropertySet.<init>(PropertySet.java:246)
at org.alfresco.sample.TestPoi.main(TestPoi.java:46)
Information:
Test document was generated usin APSOSE: http://www.aspose.com/
An anlisys of the document content and format can be found here:
https://issues.alfresco.com/jira/browse/ALF-16896
The questions are?
"It appears that the length is little endian but in this file it always starts
on a 4 byte boundary. I don't know if that is what should happen or if this is
an error in the file. However as a result I have been able to work out a patch
(UnicodeString.java.patch attached) which when applied to our POI works for
both this file and existing files."
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]