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 2006/11/29 13:40:59 UTC

DO NOT REPLY [Bug 40806] - ArrayIndexOutOfBoundsException while opening PPT file

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=40806>.
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=40806





------- Additional Comments From bjorn.wang@creuna.no  2006-11-29 04:40 -------
Created an attachment (id=19197)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19197&action=view)
Simplest possible testcase showing the ArrayIndexOutOfBoundsError

I use POI through Nutch for parsing Office documents.

Note: No exception is thrown when I do my tests, but a lot of ERROR messages
are logged, indicating that something is wrong:

ERROR - ContentReaderListener.extractTextBoxes(322) | extractClientTextBoxes
java.lang.ArrayIndexOutOfBoundsException: -353698944
	at org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java:491)
	at org.apache.poi.util.LittleEndian.getUShort(LittleEndian.java:64)
	at
org.apache.nutch.parse.mspowerpoint.ContentReaderListener.extractTextBoxes(ContentReaderListener.java:200)

	at
org.apache.nutch.parse.mspowerpoint.ContentReaderListener.processPOIFSReaderEvent(ContentReaderListener.java:110)

	at
org.apache.poi.poifs.eventfilesystem.POIFSReader.processProperties(POIFSReader.java:260)

	at
org.apache.poi.poifs.eventfilesystem.POIFSReader.read(POIFSReader.java:96)
	at
org.apache.nutch.parse.mspowerpoint.PPTExtractor.extractText(PPTExtractor.java:49)

	at org.apache.nutch.parse.ms.MSExtractor.extract(MSExtractor.java:77)
	at
org.apache.nutch.parse.ms.MSBaseParser.getParse(MSBaseParser.java:81)
	at
org.apache.nutch.parse.mspowerpoint.MSPowerPointParser.getParse(MSPowerPointParser.java:44)

	at
no.creuna.documentparser.DocumentParser.parseDocument(DocumentParser.java:156)
	at
test.no.creuna.documentparser.DocumentParserErrorsTest.testArrayIndexOutOfBoundsExceptionErrors(DocumentParserErrorsTest.java:186)

-- 
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/