[ 
https://issues.apache.org/jira/browse/TIKA-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tyler Palsulich resolved TIKA-1251.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6
         Assignee: Tyler Palsulich

Fixed in r1612373. I added a unit test with the attached document. 

{code}
[INFO] Apache Tika parent ................................ SUCCESS [  1.186 s]
[INFO] Apache Tika core .................................. SUCCESS [ 13.328 s]
[INFO] Apache Tika parsers ............................... SUCCESS [01:38 min]
[INFO] Apache Tika XMP ................................... SUCCESS [  2.079 s]
[INFO] Apache Tika serialization ......................... SUCCESS [  3.101 s]
[INFO] Apache Tika application ........................... SUCCESS [  6.289 s]
[INFO] Apache Tika OSGi bundle ........................... SUCCESS [  2.187 s]
[INFO] Apache Tika server ................................ SUCCESS [ 11.633 s]
[INFO] Apache Tika translate ............................. SUCCESS [  2.285 s]
[INFO] Apache Tika Java-7 Components ..................... SUCCESS [  2.845 s]
[INFO] Apache Tika ....................................... SUCCESS [  0.015 s]
{code}

> RuntimeException when parsing word (.doc) documents. Works in Tika 1.4 but 
> not 1.5
> ----------------------------------------------------------------------------------
>
>                 Key: TIKA-1251
>                 URL: https://issues.apache.org/jira/browse/TIKA-1251
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.5
>         Environment: Linux 3.10.25-gentoo #3 SMP Tue Feb 25 07:35:57 CET 2014 
> x86_64 Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz GenuineIntel GNU/Linux
> Oracle JDK 1.7.0.51 [oracle-jdk-bin-1.7] and IcedTea JDK 6.1.12.7 
> [icedtea-bin-6]. Both fail
>            Reporter: Andreas
>            Assignee: Tyler Palsulich
>            Priority: Critical
>             Fix For: 1.6
>
>         Attachments: Ansvarsvakt rutine01.06.11.doc, TIKA-1251.patch
>
>
> Parsing the attached document works in Tika 1.4, but not in Tika 1.5. See 
> output below. However, using Tika 1.4 is not a proper temporary solution as 
> it leaves tons of special characters and functions in the output. See my post 
> on SO: https://stackoverflow.com/questions/21929040
> {noformat}
> $ java -jar tika-app-1.4.jar Ansvarsvakt\ rutine01.06.11.doc > /dev/null
> $
> $ java -jar tika-app-1.5.jar Ansvarsvakt\ rutine01.06.11.doc > /dev/null 
> Exception in thread "main" org.apache.tika.exception.TikaException: 
> Unexpected RuntimeException from 
> org.apache.tika.parser.microsoft.OfficeParser@193936e1
>         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:142)
>         at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:418)
>         at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:112)
> Caused by: java.lang.IllegalArgumentException: This paragraph is not the 
> first one in the table
>         at org.apache.poi.hwpf.usermodel.Range.getTable(Range.java:932)
>         at 
> org.apache.tika.parser.microsoft.WordExtractor.handleParagraph(WordExtractor.java:188)
>         at 
> org.apache.tika.parser.microsoft.WordExtractor.handleHeaderFooter(WordExtractor.java:172)
>         at 
> org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:98)
>         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:242)
>         ... 5 more
> {noformat}
> Sidenote: If I open the document in Abiword and just click ctrl+s to save the 
> document (with no changes), Tika 1.5 parses it just fine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to