You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by kaveh minooie <ka...@plutoz.com> on 2012/02/22 00:47:39 UTC
slf4j-log4j12 new version causes runtime error
I hope I am sending this to the correct list :)
I just saw this issue when I was trying to run indexchecker in local mode.
I solved this by changing this line in the ivy.xml
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"
conf="*->master" />
to
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.5"
conf="*->master" />
the pom.xml has the "correct" version but ivy.xml seems to be overriding
it. (if that was an obvious statement, I apologize, but I am new to ivy
and the whole Maven stuff)
this would be also helpfull:
http://www.slf4j.org/faq.html#IllegalAccessError
and for the record this is the error I got
kaveh@index9:~/build/nutch/runtime/local$ bin/nutch indexchecker
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.nutch.indexer.IndexingFiltersChecker.<clinit>(IndexingFiltersChecker.java:36)
--
Kaveh Minooie
www.plutoz.com
Re: slf4j-log4j12 new version causes runtime error
Posted by Lewis John Mcgibbney <le...@gmail.com>.
Thank you
On Wed, Feb 22, 2012 at 7:14 PM, <ka...@plutoz.com> wrote:
> sure I am working on it. I'll keep u posted.
>
> -----Original Message-----
> From: "Lewis John Mcgibbney" <le...@gmail.com>
> Sent: Wednesday, February 22, 2012 3:20am
> To: dev@nutch.apache.org
> Subject: Re: slf4j-log4j12 new version causes runtime error
>
> Hi,
>
> This is the case for both trunk and Nutchgora branch.
>
> Is it possible for you to make this change into a patch, test it locally
> then submit it to a Jira?
>
> If not I suppose one of us can pick it up.
>
> Thank you
>
> Lewis
>
> sure
>
> On Tue, Feb 21, 2012 at 11:47 PM, kaveh minooie <ka...@plutoz.com> wrote:
>
> > I hope I am sending this to the correct list :)
> >
> > I just saw this issue when I was trying to run indexchecker in local
> mode.
> >
> > I solved this by changing this line in the ivy.xml
> > <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"
> > conf="*->master" />
> >
> > to
> >
> > <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.5"
> > conf="*->master" />
> >
> > the pom.xml has the "correct" version but ivy.xml seems to be overriding
> > it. (if that was an obvious statement, I apologize, but I am new to ivy
> and
> > the whole Maven stuff)
> >
> > this would be also helpfull:
> > http://www.slf4j.org/faq.html#**IllegalAccessError<
> http://www.slf4j.org/faq.html#IllegalAccessError>
> >
> >
> > and for the record this is the error I got
> > kaveh@index9:~/build/nutch/**runtime/local$ bin/nutch indexchecker
> > 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.nutch.indexer.**IndexingFiltersChecker.<**clinit>(**
> > IndexingFiltersChecker.java:**36)
> >
> >
> >
> > --
> > Kaveh Minooie
> >
> > www.plutoz.com
> >
>
>
>
> --
> *Lewis*
>
>
>
--
*Lewis*
Re: slf4j-log4j12 new version causes runtime error
Posted by ka...@plutoz.com.
sure I am working on it. I'll keep u posted.
-----Original Message-----
From: "Lewis John Mcgibbney" <le...@gmail.com>
Sent: Wednesday, February 22, 2012 3:20am
To: dev@nutch.apache.org
Subject: Re: slf4j-log4j12 new version causes runtime error
Hi,
This is the case for both trunk and Nutchgora branch.
Is it possible for you to make this change into a patch, test it locally
then submit it to a Jira?
If not I suppose one of us can pick it up.
Thank you
Lewis
sure
On Tue, Feb 21, 2012 at 11:47 PM, kaveh minooie <ka...@plutoz.com> wrote:
> I hope I am sending this to the correct list :)
>
> I just saw this issue when I was trying to run indexchecker in local mode.
>
> I solved this by changing this line in the ivy.xml
> <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"
> conf="*->master" />
>
> to
>
> <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.5"
> conf="*->master" />
>
> the pom.xml has the "correct" version but ivy.xml seems to be overriding
> it. (if that was an obvious statement, I apologize, but I am new to ivy and
> the whole Maven stuff)
>
> this would be also helpfull:
> http://www.slf4j.org/faq.html#**IllegalAccessError<http://www.slf4j.org/faq.html#IllegalAccessError>
>
>
> and for the record this is the error I got
> kaveh@index9:~/build/nutch/**runtime/local$ bin/nutch indexchecker
> 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.nutch.indexer.**IndexingFiltersChecker.<**clinit>(**
> IndexingFiltersChecker.java:**36)
>
>
>
> --
> Kaveh Minooie
>
> www.plutoz.com
>
--
*Lewis*
Re: slf4j-log4j12 new version causes runtime error
Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi,
This is the case for both trunk and Nutchgora branch.
Is it possible for you to make this change into a patch, test it locally
then submit it to a Jira?
If not I suppose one of us can pick it up.
Thank you
Lewis
On Tue, Feb 21, 2012 at 11:47 PM, kaveh minooie <ka...@plutoz.com> wrote:
> I hope I am sending this to the correct list :)
>
> I just saw this issue when I was trying to run indexchecker in local mode.
>
> I solved this by changing this line in the ivy.xml
> <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1"
> conf="*->master" />
>
> to
>
> <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.5.5"
> conf="*->master" />
>
> the pom.xml has the "correct" version but ivy.xml seems to be overriding
> it. (if that was an obvious statement, I apologize, but I am new to ivy and
> the whole Maven stuff)
>
> this would be also helpfull:
> http://www.slf4j.org/faq.html#**IllegalAccessError<http://www.slf4j.org/faq.html#IllegalAccessError>
>
>
> and for the record this is the error I got
> kaveh@index9:~/build/nutch/**runtime/local$ bin/nutch indexchecker
> 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.nutch.indexer.**IndexingFiltersChecker.<**clinit>(**
> IndexingFiltersChecker.java:**36)
>
>
>
> --
> Kaveh Minooie
>
> www.plutoz.com
>
--
*Lewis*