incubator-photark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luciano Resende <luckbr1...@gmail.com>
Subject Re: Suggestion to go for a higher version of SLF4J
Date Sun, 10 Jul 2011 09:31:00 GMT
On Sat, Jul 9, 2011 at 10:07 PM, Subash Chaturanga <subashsdm@gmail.com> wrote:
> Hi devs,
>
> When I wrote a test class for Generic Face Recognition I got the following
> Exception in runtime,
> *Exception in thread "main" java.lang.IllegalAccessError: tried to access
> field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class
> org.slf4j.LoggerFactory*
>
> This is because, the slf4j-api distribution having different implementations
> of StaticLoggerBinder  to one in the slf4j implementation JARs. So to skip
> this and gt this done, we need to include the slfj4 -api dependency as well.
> And also I saw in a forum saying this doesn't work for versions below 1.5.5
> or 6.
> So I tried by having dependencies of the version 1.5.8 in both api and impl
> of slf4j (having priority to the API ) and it worked, but didn't worked for
> 1.5.3 (which we currently have) and trunk also builds with the new pom.
>
>        <dependency>
>         <groupId>org.slf4j</groupId>
>         <artifactId>slf4j-api</artifactId>
>         <version>1.5.8</version>
>       </dependency>
>
> <dependency>
>  <groupId>org.slf4j</groupId>
>  <artifactId>slf4j-log4j12</artifactId>
>  <version>1.5.8</version>
> </dependency>
>
>  So Shall we go ahead with 1.5.8 ?  WDYT ?

How about we move to the latest one, which is 1.6.1 ?

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Mime
View raw message