You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Kevin Dias (JIRA)" <ji...@apache.org> on 2015/06/22 11:06:00 UTC
[jira] [Created] (TIKA-1661) Error parsing .doc file with irregular
formatting
Kevin Dias created TIKA-1661:
--------------------------------
Summary: Error parsing .doc file with irregular formatting
Key: TIKA-1661
URL: https://issues.apache.org/jira/browse/TIKA-1661
Project: Tika
Issue Type: Bug
Components: parser
Affects Versions: 1.6
Reporter: Kevin Dias
When parsing a Word document (.doc) an error occurs. After testing it seems the error is caused by some type of formatting issue of the second page of the sample document (https://s3.amazonaws.com/tm-town-emails/import_error_example.doc).
The error is the following:
Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@52525845
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:246)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:121)
at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:143)
at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:407)
at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:116)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -19419
at org.apache.poi.util.LittleEndian.getShort(LittleEndian.java:224)
at org.apache.poi.hwpf.model.SectionTable.<init>(SectionTable.java:81)
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:345)
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:81)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:199)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:167)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244)
... 5 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)