Sep 17th, 2008, 05:49 AM
I have fixed it!
Originally Posted by ew0kian
My problem was due to incompatible versions of the components of the slf4j library.
The project used the following:
but they aren't compatible.
slf4j-api-1.5.2.jar was replaced by slf4j-api-1.5.3.jar and now it works!
Sep 17th, 2008, 07:59 AM
cool nice work. i replaced slf4j-api-1.4.2 with slf4j-api-1.5.3 and now it works. do you know if it matters if i use slf4j-simple or slf4j-log4j12?
Sep 18th, 2008, 06:56 PM
I had this error
until I matched all of my libraries for slf4j to the latest release the
.name field was added in a new (recent) superclass and the java.lang error
is that there really isn't such a field in the class defintion.
I'd check the mix and match of version of all of the slf4j and any other sets
of libraries because you have a .class that actually says this.name and
there isn't such a field in the classes you have brought together.
Sep 19th, 2008, 12:13 AM
right, i made sure those two have the same version number and it works fine now
Sep 22nd, 2008, 12:15 AM
I am getting the exact same error.
Caused by: java.lang.NoSuchFieldError: name
at org.slf4j.impl.SimpleLogger.<init>(SimpleLogger.ja va:83)
at org.slf4j.impl.SimpleLoggerFactory.getLogger(Simpl eLoggerFactory.java:67)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.ja va:103)
at org.hibernate.cfg.Configuration.<clinit>(Configura tion.java:151)
at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3C onfiguration.java:107)
at org.hibernate.ejb.HibernatePersistence.createConta inerEntityManagerFactory(HibernatePersistence.java :130)
at org.springframework.orm.jpa.LocalContainerEntityMa nagerFactoryBean.createNativeEntityManagerFactory( LocalContainerEntityManagerFactoryBean.java:221)
at org.springframework.orm.jpa.AbstractEntityManagerF actoryBean.afterPropertiesSet(AbstractEntityManage rFactoryBean.java:251)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1390)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1359)
Sep 22nd, 2008, 12:26 PM
I see I'm not the only one to not see a reply before replying amd not only one
to accidently cobble together the wrong library sets.
My (phill) and ew0kian's solution was to get all of the org.slf4j libraries aligned to the same (latest) version and the problem went away because the name field was recently added, so this erros comes up if you mix more recent versions
with slightly older versions.
Oct 7th, 2008, 07:19 AM
Hi, can some1 help me get this file [slf4j-api-1.5.3.jar] please ... googled with no success
Originally Posted by dendery
Oct 7th, 2008, 07:59 AM
And on the slf4j site (http://www.slf4j.org)?
Originally Posted by SonxSprn7
Oct 9th, 2008, 12:25 PM
Which version of slf4j are you using?
I was using slf4j-log4j12-1.5.3.jar because I downloaded it manually from the slf4j site but the dependency states slf4j-1.5.2. Once I got the 1.5.2 the NoSuchFieldError was gone.
Oct 9th, 2008, 01:43 PM