tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jawahar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2147) ClassCastException on a valid Word template
Date Fri, 08 Feb 2019 06:06:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763353#comment-16763353
] 

Jawahar commented on TIKA-2147:
-------------------------------

Ok Tim, Thanks !

> ClassCastException on a valid Word template
> -------------------------------------------
>
>                 Key: TIKA-2147
>                 URL: https://issues.apache.org/jira/browse/TIKA-2147
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.13
>         Environment: Windows 7 x64, JVM 1.8.0_101
>            Reporter: Seva Alekseyev
>            Priority: Major
>              Labels: sax_docx_fixes
>             Fix For: 1.20
>
>         Attachments: Forefront Fax.dotx, basicresume.docx
>
>
> On the attached document template, which opens fine in Word, the Tika parser throws the
following error:
> 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:658)
> 	at org.apache.poi.xwpf.usermodel.XWPFDocument.onDocumentRead(XWPFDocument.java:235)
> 	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)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message