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

ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.2, 2.0.3
    • 2.0.3, 3.0.0 PDFBox
    • Parsing
    • None
    • Win7, jdk1.8.0_60 x64

    Description

      The following stacktrace is shown with ExtractText and PDFReader when opening a file previously parsed by 1.8.10. Unfortunately the file can not be shared.

      java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 0
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:176)
          sun.swing.AccumulativeRunnable.run(Unknown Source)
          java.security.AccessController.doPrivileged(Native Method)
          java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 0
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.done(PagePane.java:165)
          sun.swing.AccumulativeRunnable.run(Unknown Source)
          java.security.AccessController.doPrivileged(Native Method)
          java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
          org.apache.fontbox.ttf.TrueTypeFont.getUnicodeCmap(TrueTypeFont.java:566)
          org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:183)
          org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:70)
          org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125)
          org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:128)
          org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
          org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:123)
          org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:815)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
          org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
          org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:189)
          org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:208)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:139)
          org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:156)
          org.apache.pdfbox.debugger.pagepane.PagePane$RenderWorker.doInBackground(PagePane.java:139)
          java.lang.Thread.run(Unknown Source)
      

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            lfcnassif Luís Filipe Nassif
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: