On Sun, Jul 10, 2011 at 3:01 PM, Luciano Resende <[email protected]>wrote:
> On Sat, Jul 9, 2011 at 10:07 PM, Subash Chaturanga <[email protected]> > 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 ? Hi Luciano, I am getting some Exceptions of NoSuchMethodError from face4j in 1.6.1 and 1.6.0(but i don't know the reason). There is no version called 1.5.9. But 1.5.8 works fine. WDYT? > > -- > Luciano Resende > http://people.apache.org/~lresende > http://twitter.com/lresende1975 > http://lresende.blogspot.com/ > -- Subash Chaturanga Department of Computer Science & Engineering University of Moratuwa Sri Lanka Blog - http://subashsdm.blogspot.com/ Twitter - http://twitter.com/subash89
