Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2139

NullPointerException on a valid PDF after loading

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.13
    • None
    • parser
    • None
    • Windows 7 x64, JVM 1.8.0_101

    Description

      On the attached PDF document, which opens fine in Acrobar Reader, the Tika parser throws the following error:

      java.lang.NullPointerException
      at org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory.findFieldType(PDFieldFactory.java:113)
      at org.apache.pdfbox.pdmodel.interactive.form.PDFieldFactory.createField(PDFieldFactory.java:48)
      at org.apache.pdfbox.pdmodel.interactive.form.PDField.fromDictionary(PDField.java:77)
      at org.apache.pdfbox.pdmodel.interactive.form.PDNonTerminalField.getChildren(PDNonTerminalField.java:136)
      at org.apache.tika.parser.pdf.PDF2XHTML.processAcroField(PDF2XHTML.java:698)
      at org.apache.tika.parser.pdf.PDF2XHTML.extractAcroForm(PDF2XHTML.java:680)
      at org.apache.tika.parser.pdf.PDF2XHTML.endDocument(PDF2XHTML.java:243)
      at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:267)
      at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:160)
      at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:144)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sevaa Seva Alekseyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment