You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Erik Hetzner (JIRA)" <ji...@apache.org> on 2010/05/19 02:10:53 UTC

[jira] Created: (TIKA-425) Exception parsing mp3

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.


[jira] Commented: (TIKA-425) Exception parsing mp3

Posted by "Gerd Bremer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TIKA-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869093#action_12869093 ] 

Gerd Bremer commented on TIKA-425:
----------------------------------

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.


[jira] Updated: (TIKA-425) Exception parsing mp3

Posted by "Gerd Bremer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerd Bremer updated TIKA-425:
-----------------------------

    Attachment: Fix_for_TIKA-425.patch

Added a patch file to fix TIKA-425.

> 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
>         Attachments: Fix_for_TIKA-425.patch
>
>
> 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.


[jira] Resolved: (TIKA-425) Exception parsing mp3

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved TIKA-425.
--------------------------------

         Assignee: Jukka Zitting
    Fix Version/s: 0.8
       Resolution: Fixed

Thanks for the problem report and the patch! I committed a slightly extended version in revision 948376.

> 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
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 0.8
>
>         Attachments: Fix_for_TIKA-425.patch
>
>
> 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.


[jira] Issue Comment Edited: (TIKA-425) Exception parsing mp3

Posted by "Gerd Bremer (JIRA)" <ji...@apache.org>.
    [ 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.