pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Agustin Rios <agusti...@gmail.com>
Subject IndexOutOfBoundsException
Date Wed, 22 Jan 2014 19:26:25 GMT
Hi, i'm using pdfbox to generate a pdf file with 500 pages and i get the
following exception:

org.apache.pdfbox.exceptions.COSVisitorException:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream(COSWriter.java:1245)
        at org.apache.pdfbox.cos.COSStream.accept(COSStream.java:201)
        at org.apache.pdfbox.cos.COSObject.accept(COSObject.java:206)
        at
org.apache.pdfbox.pdfwriter.COSWriter.doWriteObject(COSWriter.java:524)
        at
org.apache.pdfbox.pdfwriter.COSWriter.doWriteBody(COSWriter.java:434)
        at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromDocument(COSWriter.java:1056)
        at org.apache.pdfbox.cos.COSDocument.accept(COSDocument.java:496)
        at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1392)
        at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1157)
...

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:604)
        at java.util.ArrayList.get(ArrayList.java:382)
        at
org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84)
        at
org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at
org.apache.pdfbox.pdfwriter.COSWriter.visitFromStream(COSWriter.java:1232)
        ... 16 more

I found this issue:
https://issues.apache.org/jira/browse/PDFBOX-1586

and I would like to know if the bug is already solved or there is some way
to skip it . I'm using 1.8.3 version.

thanks!


-- 
SerĂ¡ el intento a buscar
lo que valore tu vida
buscar termina en encontrar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message