Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2730

parseToString fails for a simple mp3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.19
    • 2.0.0, 1.19.1
    • None
    • None

    Description

      This is a regression from 1.18. I've attached the mp3 that fails. The exception I get is:

      org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from org.apache.tika.parser.mp3.Mp3Parser@cefe6c6
          at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:286)
          at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
          at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:143)
          at org.apache.tika.Tika.parseToString(Tika.java:527)
          at com.company.TextExtractor.getText(TextExtractor.java:39)
      
          Caused by:
          java.io.EOFException: EOF: tried to skip 361 but could only skip 247
              at org.apache.tika.parser.mp3.MpegStream.skipFrame(MpegStream.java:166)
              at org.apache.tika.parser.mp3.Mp3Parser.getAllTagHandlers(Mp3Parser.java:204)
              at org.apache.tika.parser.mp3.Mp3Parser.parse(Mp3Parser.java:71)
              at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
              ... 5 more

      Attachments

        1. demo.mp3
          38 kB
          Boris Petrov

        Issue Links

          Activity

            People

              tallison Tim Allison
              boris-petrov Boris Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: