The API changed a bit with NUTCH-1230. What version are you using?
-----Original message----- > From:Jim Chandler <jamescchand...@gmail.com> > Sent: Wed 27-Jun-2012 20:45 > To: user@nutch.apache.org > Subject: NoSuchMethodError > > Greetings, > > I am trying to create a plugin similar to Index-More which uses MimeUtil > (org.apache.nutch.util.MimeUtil) > > The code looks like this: > > private MimeUtil MIME; > > public void setConf(Configuration conf) { > this.conf = conf; > MIME = new MimeUtil(conf); > } > > this is the line that errors > > mimeType = MIME.forName(MimeUtil.cleanMimeType(contentType)); > > with: > > java.lang.NoSuchMethodError: > org.apache.nutch.util.MimeUtil.forName(Ljava/lang/String;)Ljava/lang/String; > at > org.apache.nutch.indexer.contenttype.ContentType.filter(ContentType.java:64) > at org.apache.nutch.indexer.IndexingFilters.filter(IndexingFilters.java:109) > at > org.apache.nutch.indexer.IndexerMapReduce.reduce(IndexerMapReduce.java:135) > at > org.apache.nutch.indexer.IndexerMapReduce.reduce(IndexerMapReduce.java:51) > at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:463) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411) > at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216) > 2012-06-27 14:27:57,693 ERROR solr.SolrIndexer - java.io.IOException: Job > failed! > > My includes are: > > import org.apache.tika.mime.MimeType; > > import org.apache.commons.logging.Log; > import org.apache.commons.logging.LogFactory; > > import org.apache.hadoop.conf.Configuration; > import org.apache.hadoop.io.Text; > import org.apache.hadoop.io.Writable; > > import org.apache.nutch.crawl.CrawlDatum; > import org.apache.nutch.crawl.Inlinks; > > import org.apache.nutch.indexer.IndexingException; > import org.apache.nutch.indexer.IndexingFilter; > import org.apache.nutch.indexer.NutchDocument; > > import org.apache.nutch.parse.Parse; > import org.apache.nutch.parse.ParseData; > import org.apache.nutch.util.MimeUtil; > import org.apache.nutch.net.protocols.Response; > > Any help would be greatly appreciated. > > Jim >