tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerd Bremer (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (TIKA-425) Exception parsing mp3
Date Wed, 19 May 2010 11:16:53 GMT

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

Gerd Bremer edited comment on TIKA-425 at 5/19/10 7:15 AM:
-----------------------------------------------------------

I have the same issue. The Mp3Parser may not call the 'element' method with a null value or
the 'characters' method in the content handler must check if the parameter is null.


      was (Author: gbremer):
    I have the same issue and found a cause:

caused by: java.lang.NullPointerException
	at org.apache.tika.sax.XHTMLContentHandler.characters(XHTMLContentHandler.java:196)
	at org.apache.tika.sax.XHTMLContentHandler.element(XHTMLContentHandler.java:205)
	at org.apache.tika.parser.mp3.Mp3Parser.parse(Mp3Parser.java:88)
	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)

The Mp3Parser may not call the 'element' method with a null value or the 'characters' method
in the content handler must check if the parameter is null.

  
> Exception parsing mp3
> ---------------------
>
>                 Key: TIKA-425
>                 URL: https://issues.apache.org/jira/browse/TIKA-425
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.7
>            Reporter: Erik Hetzner
>            Priority: Minor
>
> Hi -
> I catch an exception processing the following mp3 file:
> $ curl -s http://www.thecoolspot.gov/sounds/coolspot.mp3 | java -jar tika-app-0.7.jar
> Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException
from org.apache.tika.parser.mp3.Mp3Parser@1d2940b3
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:134)
> 	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99)
> 	at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:155)
> 	at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:65)
> Caused by: java.lang.NullPointerException
> 	at org.apache.tika.sax.XHTMLContentHandler.characters(XHTMLContentHandler.java:196)
> 	at org.apache.tika.sax.XHTMLContentHandler.element(XHTMLContentHandler.java:205)
> 	at org.apache.tika.parser.mp3.Mp3Parser.parse(Mp3Parser.java:77)
> 	at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132)
> 	... 3 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message