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

POIXMLException from NullPointerException on a valid Word file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13
    • Fix Version/s: 2.0, 1.15
    • Component/s: parser
    • Labels:
      None
    • Environment:

      Windows 7 x64, JVM 1.8.0_101

      Description

      On the attached word file, which opens fine with Word (albeit with no text), the Tika parser throws the following error:

      org.apache.poi.POIXMLException: java.lang.NullPointerException
      at org.apache.poi.xwpf.usermodel.XWPFFooter.onDocumentRead(XWPFFooter.java:130)
      at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:208)
      at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:160)
      at org.apache.poi.xwpf.usermodel.XWPFDocument.<init>(XWPFDocument.java:124)
      at org.apache.poi.xwpf.extractor.XWPFWordExtractor.<init>(XWPFWordExtractor.java:58)
      at org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:237)
      at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)
      at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)
      Caused by: java.lang.NullPointerException
      at org.apache.poi.xwpf.usermodel.AbstractXWPFSDT.<init>(AbstractXWPFSDT.java:37)
      at org.apache.poi.xwpf.usermodel.XWPFSDT.<init>(XWPFSDT.java:38)
      at org.apache.poi.xwpf.usermodel.XWPFFooter.onDocumentRead(XWPFFooter.java:124)
      ... 9 more

        Attachments

        1. test_16022016081053.docx
          2 kB
          Seva Alekseyev

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: