You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2012/05/17 00:07:06 UTC
[jira] [Resolved] (TIKA-916) NullPointerException processing XPS
file
[ https://issues.apache.org/jira/browse/TIKA-916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Burch resolved TIKA-916.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.2
Should be fixed (with a unit test) in r1339390.
> 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
> Fix For: 1.2
>
> Attachments: doc_xps.xps
>
>
> 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. (xps_print.xps)
> Both files gives error and content is not indexed.
> {noformat}
> > 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
> {noformat}
--
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