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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/