You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/06/11 15:57:01 UTC

[jira] [Closed] (PDFBOX-1498) Index Out Of Bounds Exception while reading large PDF Document

     [ https://issues.apache.org/jira/browse/PDFBOX-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr closed PDFBOX-1498.
-----------------------------------

    Resolution: Cannot Reproduce

I am closing this in the assumption that the outofbounds issue has been solved some time ago and we don't have a sample file from you. The OOM problems are being discussed in PDFBOX-2101 and we have done some improvements, so please try with a current snapshot to see whether it is better now. If you do still have a OOM issue please post to PDFBOX-2101; if you do still get the outofbounds issue please reopen this one (or create a new issue).

> Index Out Of Bounds Exception while reading large PDF Document 
> ---------------------------------------------------------------
>
>                 Key: PDFBOX-1498
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1498
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Manoj Patel
>            Assignee: Andreas Lehmkühler
>
> I am getting java.lang.IndexOutOfBoundsException while reading large PDF document (800 mb). 
> Below is the full stack
> Exception in thread "main" org.apache.pdfbox.exceptions.WrappedIOException
> 	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:243)
> 	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1071)
> 	at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1038)
> 	at imageData.AddFooter.main(AddFooter.java:26)
> Caused by: java.lang.IndexOutOfBoundsException: Index: 3377, Size: 3377
> 	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> 	at java.util.ArrayList.get(ArrayList.java:322)
> 	at org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84)
> 	at org.apache.pdfbox.io.RandomAccessFileOutputStream.write(RandomAccessFileOutputStream.java:106)
> 	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
> 	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
> 	at java.io.FilterOutputStream.close(FilterOutputStream.java:140)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:606)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:566)
> 	at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:187)
> 	... 3 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)