Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-681

parse-mp3 compilation problem

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: indexer
    • Labels:
      None
    • Environment:

      ubuntu, nutch-1.0-dev (trunk revision : 734360)

      Description

      Due to API changes, the MP3 parser (which is not compiled by default due to licensing problem) doesn't compile anymore.

      compile:
      [echo] Compiling plugin: parse-mp3
      [javac] Compiling 2 source files to /home/wildan/jobstuff/LIPI/Ngoprek/nutch/build/parse-mp3/classes
      [javac] /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/parse-mp3/src/java/org/apache/nutch/parse/mp3/MP3Parser.java:53: org.apache.nutch.parse.mp3.MP3Parser is not abstract and does not override abstract method getParse(org.apache.nutch.protocol.Content) in org.apache.nutch.parse.Parser
      [javac] public class MP3Parser implements Parser {
      [javac] ^
      [javac] /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/parse-mp3/src/java/org/apache/nutch/parse/mp3/MP3Parser.java:58: getParse(org.apache.nutch.protocol.Content) in org.apache.nutch.parse.mp3.MP3Parser cannot implement getParse(org.apache.nutch.protocol.Content) in org.apache.nutch.parse.Parser; attempting to use incompatible return type
      [javac] found : org.apache.nutch.parse.Parse
      [javac] required: org.apache.nutch.parse.ParseResult
      [javac] public Parse getParse(Content content) {
      [javac] ^
      [javac] /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/parse-mp3/src/java/org/apache/nutch/parse/mp3/MetadataCollector.java:54: cannot find symbol
      [javac] symbol : constructor Outlink(java.lang.String,java.lang.String,org.apache.hadoop.conf.Configuration)
      [javac] location: class org.apache.nutch.parse.Outlink
      [javac] links.add(new Outlink(value, "", this.conf));
      [javac] ^
      [javac] Note: /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/parse-mp3/src/java/org/apache/nutch/parse/mp3/MetadataCollector.java uses unchecked or unsafe operations.
      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 3 errors

      BUILD FAILED
      /home/wildan/jobstuff/LIPI/Ngoprek/nutch/build.xml:113: The following error occurred while executing this line:
      /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/build.xml:55: The following error occurred while executing this line:
      /home/wildan/jobstuff/LIPI/Ngoprek/nutch/src/plugin/build-plugin.xml:111: Compile failed; see the compiler error output for details.

        Attachments

        1. MP3Parser.java-compilation_issues.diff
          8 kB
          Wildan Maulana
        2. MetadataCollector.java-compilation_issues.diff
          0.5 kB
          Wildan Maulana

          Activity

            People

            • Assignee:
              dogacan Dogacan Guney
              Reporter:
              wildan.m Wildan Maulana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: