You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Alexander Chow (JIRA)" <ji...@apache.org> on 2011/05/03 15:21:03 UTC
[jira] [Updated] (TIKA-619) Error parsing GIF
[ https://issues.apache.org/jira/browse/TIKA-619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Chow updated TIKA-619:
--------------------------------
Attachment: TIKA-619.patch
Can we apply the attached patch to simply ignore this exception since it is supposedly fixed in a later version of Sun's GIFImageReader.java? As long as we are dependent on Sun's APIs, I am not sure if there is any other option.
> Error parsing GIF
> -----------------
>
> Key: TIKA-619
> URL: https://issues.apache.org/jira/browse/TIKA-619
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.0
> Reporter: Erik Hetzner
> Priority: Minor
> Attachments: TIKA-619.patch, icon_gadget_tools_dark.gif
>
>
> I am getting an exception parsing the following GIF file, which opens OK in firefox, etc. Although since this is a problem in Sun/Oracle code, I would not expect it to be fixed anytime soon!
> {noformat}
> $ java -jar tika-app/target/tika-app-1.0-SNAPSHOT.jar http://sites.google.com/site/keepaesopen/_/rsrc/1271597999559/system/app/images/icon_gadget_tools_dark.gif
> Exception in thread "main" org.apache.tika.exception.TikaException: image/gif parse error
> at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:91)
> at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197)
> 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: javax.imageio.IIOException: Unexpected block type 0!
> at com.sun.imageio.plugins.gif.GIFImageReader.readMetadata(GIFImageReader.java:722)
> at com.sun.imageio.plugins.gif.GIFImageReader.getWidth(GIFImageReader.java:167)
> at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:75)
> ... 6 more
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira