You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2018/10/30 14:21:00 UTC
[jira] [Commented] (TIKA-2769) Error while using tika-app on some
docs
[ https://issues.apache.org/jira/browse/TIKA-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668769#comment-16668769 ]
Tim Allison commented on TIKA-2769:
-----------------------------------
[~IvanSorokin], thank you for opening this issue. On the attached files, I'm getting the same exception I see on TIKA-2147 and https://bz.apache.org/bugzilla/show_bug.cgi?id=60316. Would you be able to attach a document that triggers the NPE from the SDTContent?
{noformat}
Caused by: java.lang.ClassCastException: org.apache.poi.POIXMLDocumentPart cannot be cast to org.apache.poi.xwpf.usermodel.XWPFDocument
at org.apache.poi.xwpf.usermodel.XWPFFootnotes.getXWPFDocument(XWPFFootnotes.java:162)
at org.apache.poi.xwpf.usermodel.XWPFFootnote.<init>(XWPFFootnote.java:47)
at org.apache.poi.xwpf.usermodel.XWPFFootnotes.onDocumentRead(XWPFFootnotes.java:95)
at org.apache.poi.POIXMLDocumentPart._invokeOnDocumentRead(POIXMLDocumentPart.java:692)
at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:235)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:190)
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:232)
at org.apache.tika.parser.microsoft.ooxml.OOXMLExtractorFactory.parse(OOXMLExtractorFactory.java:86)
at org.apache.tika.parser.microsoft.ooxml.OOXMLParser.parse(OOXMLParser.java:87)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
{noformat}
> Error while using tika-app on some docs
> ---------------------------------------
>
> Key: TIKA-2769
> URL: https://issues.apache.org/jira/browse/TIKA-2769
> Project: Tika
> Issue Type: Bug
> Reporter: IvanSorokin
> Priority: Major
> Attachments: Examples.zip
>
>
> I tried to open some files directly in tika-app-19.jar and got an error.
> StackTrace: [https://pastebin.com/CHfFMc52]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)