tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tulloh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-916) NullPointerException processing XPS file
Date Wed, 09 May 2012 14:23:49 GMT
Rob Tulloh created TIKA-916:

             Summary: NullPointerException processing XPS file
                 Key: TIKA-916
                 URL: https://issues.apache.org/jira/browse/TIKA-916
             Project: Tika
          Issue Type: Bug
          Components: parser
    Affects Versions: 1.1
         Environment: Linux (CENTOS 6.x)
            Reporter: Rob Tulloh

Steps to  reproduce:

a) Using an application that natively outputs XPS documents, i.e. Microsoft Word 2007 when
using Save As XPS. (doc_xps.xps)
b) Using the "Print-to-XPS" driver Microsoft provides, called the Microsoft XPS Document Writer.

Both files gives error and content is not indexed.

>  java -jar /opt/ems/lib/tika-app-1.1.jar --text /tmp/doc_xps.xps
Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException
from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@3f6dadf9
        at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
        at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
        at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
        at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:130)
        at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:397)
        at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:101)
Caused by: java.lang.NullPointerException
        at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:82)
        at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:82)
        at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
        ... 5 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message