You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2007/01/16 19:24:35 UTC
DO NOT REPLY [Bug 41384] New: - Array index wrong in record creation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41384
Summary: Array index wrong in record creation
Product: POI
Version: unspecified
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSLF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: tales@great.ufc.br
When I call
SlideShow ppt = new SlideShow(new HSLFSlideShow(args[0]));
In the org.apache.poi.hslf.extractor.ImageExtractor.java, an
ArrayIndexOutOfBoundsException occurs, here is the stack trace:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -402645242
at org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java:491)
at org.apache.poi.util.LittleEndian.getUShort(LittleEndian.java:64)
at org.apache.poi.hslf.record.Record.findChildRecords(Record.java:112)
at org.apache.poi.hslf.HSLFSlideShow.buildRecords(HSLFSlideShow.java:217)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:126)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:95)
at org.apache.poi.hslf.HSLFSlideShow.<init>(HSLFSlideShow.java:82)
at org.apache.poi.hslf.extractor.ImageExtractor.main(ImageExtractor.java:40)
In some debug observations, I notice that: in the records creation, when the
position is 2703, a record with type 4085 (UserEditAtom) is created. From this
point, all the subsequent records are created with type 0 (zero). At some point,
the getUShort parameter passed is wrong. This is what I observed, don't know if
it will help.
I don't know how to reproduce the bug again. I'll upload the file.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/
DO NOT REPLY [Bug 41384] - Array index wrong in record creation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41384
------- Additional Comments From tales@great.ufc.br 2007-01-16 10:26 -------
Created an attachment (id=19415)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19415&action=view)
File for testing
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/
DO NOT REPLY [Bug 41384] - Array index wrong in record creation
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41384
yegor@dinom.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From yegor@dinom.ru 2007-03-21 07:06 -------
Fixed.
Tales, thank you for reporting it.
Regards,
Yegor
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/