Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-468

index out of bounds exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0-incubator
    • None
    • None

    Description

      This is with svn revision 773978

      I get an index out of bounds exception parsing pdf files, I can't give you the file but the exception is,

      Caused by: org.apache.pdfbox.exceptions.WrappedIOException
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:228)
      at message_analyzer.extractor.PDFExtractor.getContent(PDFExtractor.java:32)
      ... 19 more
      Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
      at org.apache.pdfbox.pdfparser.BaseParser.cmpCircularBuffer(BaseParser.java:398)
      at org.apache.pdfbox.pdfparser.BaseParser.readUntilEndStream(BaseParser.java:355)
      at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:322)
      at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:490)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:169)
      ... 20 more

      Attachments

        1. patch
          0.7 kB
          Sean Bridges

        Activity

          People

            Unassigned Unassigned
            sgbridges Sean Bridges
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: