java.lang.IndexOutOfBoundsException

Index: 5, Size: 0

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web7021

  • Index: 5, Size: 0
  • via GitHub by KyeDuo
    , 1 year ago
    Index: 5, Size: 0
  • via Stack Overflow by Unknown author, 1 year ago
    Index: 5, Size: 0
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Index: 5, Size: 0 at java.util.ArrayList.get(ArrayList.java:352) at org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) at org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) at java.io.BufferedInputStream.read1(BufferedInputStream.java:267) at java.io.BufferedInputStream.read(BufferedInputStream.java:328) at java.io.BufferedInputStream.fill(BufferedInputStream.java:229) at java.io.BufferedInputStream.read(BufferedInputStream.java:248) at java.io.FilterInputStream.read(FilterInputStream.java:77) at java.io.PushbackInputStream.read(PushbackInputStream.java:133) at org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1221) at org.apache.pdfbox.pdfparser.BaseParser.parseCOSArray(BaseParser.java:1036) at org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:266) at org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) at org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) at org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:255) 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:769)

    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

    Unknown user
    Once, 11 months ago
    18 times, 8 hours ago
    6 times, 3 days ago
    9 times, 3 days ago
    2 times, 1 week ago
    228 more bugmates