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 (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/24 15:54:46 UTC

[jira] [Resolved] (TIKA-616) ArrayIndexOutOfBoundsException from POI

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

Nick Burch resolved TIKA-616.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

I believe this was fixed in Tika 1.0 by a POI upgrade (it's certainly fixed on Trunk at the moment)
                
> ArrayIndexOutOfBoundsException from POI
> ---------------------------------------
>
>                 Key: TIKA-616
>                 URL: https://issues.apache.org/jira/browse/TIKA-616
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.10
>            Reporter: Erik Hetzner
>             Fix For: 1.0
>
>
> Hi,
> I am getting an ArrayIndexOutOfBoundsException from POI.
> Possibly related to TIKA-577.
> {noformat} 
> $ java -jar tika-app-1.0-SNAPSHOT.jar http://www.arb.ca.gov/msprog/smogcheck/july00/iiif.doc
> Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.OfficeParser@44aea710
>         at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:199)
>         at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
>         at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:135)
>         at org.apache.tika.cli.TikaCLI$OutputType.process(TikaCLI.java:107)
>         at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:302)
>         at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:91)
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 610125
>         at org.apache.poi.util.LittleEndian.getShort(LittleEndian.java:45)
>         at org.apache.poi.ddf.EscherRecord$EscherRecordHeader.readHeader(EscherRecord.java:250)
>         at org.apache.poi.ddf.DefaultEscherRecordFactory.createRecord(DefaultEscherRecordFactory.java:56)
>         at org.apache.poi.hwpf.model.PicturesTable.searchForPictures(PicturesTable.java:169)
>         at org.apache.poi.hwpf.model.PicturesTable.searchForPictures(PicturesTable.java:180)
>         at org.apache.poi.hwpf.model.PicturesTable.searchForPictures(PicturesTable.java:180)
>         at org.apache.poi.hwpf.model.PicturesTable.getAllPictures(PicturesTable.java:207)
>         at org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:430)
>         at org.apache.tika.parser.microsoft.WordExtractor$PicturesSource.<init>(WordExtractor.java:420)
>         at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:75)
>         at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:182)
>         at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
>         ... 5 more
> {noformat} 
> Thank you!

--
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