See http://www.slf4j.org/faq.html#IllegalAccessError
This error is caused by the static initilizer of the LoggerFactory class > attempting to directly access the SINGLETON field of > org.slf4j.impl.StaticLoggerBinder. While this was allowed in SLF4J 1.5.5 > and earlier, in 1.5.6 and later the SINGLETON field has been marked as > private access. > > If you get the exception shown above, then you are using an older version > of slf4j-api, e.g. 1.4.3, with a new version of a slf4j binding, e.g. 1.5.6. > Typically, this occurs when your Maven *pom.ml* file incoprporates > hibernate 3.3.0 which declares a dependency on slf4j-api version 1.4.2. If > your *pom.xml* declares a dependency on an slf4j binding, say > slf4j-log4j12 version 1.5.6, then you will get illegal access errors. > 'ant report' shows slf4j-api version = 1.5.5 from SOLRbut out ivy.xml lists slf4j-log4j12 version = 1.5.11so we should either revert slf4-log4j12 to 1.5.5 or set slf4j-api to 1.5.11 Julien On 8 April 2011 13:44, Markus Jelsma <[email protected]> wrote: > Hi devs, > > Since today i noticed that all solr* commands fail in a similar fashion: > > SolrDeleteDuplicates: starting at 2011-04-08 14:17:44 > SolrDeleteDuplicates: Solr url: http://127.0.0.1:8983/solr > Exception in thread "main" java.lang.IllegalAccessError: tried to access > field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class > org.slf4j.LoggerFactory > at org.slf4j.LoggerFactory.staticInitialize(LoggerFactory.java:83) > at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:73) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<clinit>(CommonsHttpSolrServer.java:78) > at > org.apache.nutch.indexer.solr.SolrDeleteDuplicates$SolrInputFormat.getSplits(SolrDeleteDuplicates.java:188) > at > org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:810) > at > org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:781) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1249) > at > org.apache.nutch.indexer.solr.SolrDeleteDuplicates.dedup(SolrDeleteDuplicates.java:358) > at > org.apache.nutch.indexer.solr.SolrDeleteDuplicates.run(SolrDeleteDuplicates.java:370) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at > org.apache.nutch.indexer.solr.SolrDeleteDuplicates.main(SolrDeleteDuplicates.java:375) > > > The error can be a bit different between commands but they always end up > with: > > Exception in thread "main" java.lang.IllegalAccessError: tried to access > field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class > org.slf4j.LoggerFactory > at org.slf4j.LoggerFactory.staticInitialize(LoggerFactory.java:83) > at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:73) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<clinit>(CommonsHttpSolrServer.java:78) > > This happens in the current 1.3 revision but also in a revision (1079765) a > month old and a revision (1062728) of 2011-01-24. I've no idea what's > causing the issue but it might have something to do with me removing ~/.ivy2 > yesterday. Since then all stuff is being downloaded again. If you cannot > reproduce then i'm quite sure that removing stuff in .ivy2 and a fresh svn > export will make your Solr commands fail. I cannot compile trunk at the > moment because of Gora and i cannot compile Gora because of some other > dependency and haven't come to fixing that for now. > > Any thoughts? > > Cheers, > -- * *Open Source Solutions for Text Engineering http://digitalpebble.blogspot.com/ http://www.digitalpebble.com

