java.lang.IndexOutOfBoundsException: Index: 12, Size: 12


Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


7 months ago
Expert tip

Solutions on the web1291

Solution icon of apache
via pdfbox-dev by Andreas Lehmkühler (JIRA), 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-dev by Andreas Lehmkühler (JIRA), 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by moh.sushi, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by moh.sushi, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via incubator-pdfbox-users by moh.sushi, 3 months ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by moh.sushi, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by moh.sushi, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by Maruan Sahyoun, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via pdfbox-users by Maruan Sahyoun, 1 year ago
Index: 12, Size: 12

Solution icon of apache
via incubator-pdfbox-users by moh.sushi, 3 months ago
Index: 12, Size: 12

Stack trace

java.lang.IndexOutOfBoundsException: Index: 12, Size: 12
	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:116)
	at org.apache.pdfbox.filter.RunLengthDecodeFilter.decode(RunLengthDecodeFilter.java:92)
	at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:279)
	at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
	at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
	at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:214)
	at org.apache.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:468)
	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:185)
	at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:83)
	at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:554)
	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)
	at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)
	at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)
	at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:125)
	at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:757)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
239 more bugmates