wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Error:Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Error:Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()" Watch "Error:Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()" New topic
Author

Error:Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()

srinivas Doni
Greenhorn

Joined: Jun 02, 2011
Posts: 23
Hi to all,

I am getting following exception while establishing connection to hibernate.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z.

I am using Eclipse3.6 and database is mysql 5.0. with following jars

--ant nlr 3.0jar
--commons-collection 3.1 jar
--slf4j-api-1.3.1.jar
-- slf4j-jdk-1.3.1.jar
-- hibernate-core.jar
-- mysql-connector-bin-5.0.8.jar
-- javassit 3.3 ga.jar
-- dom4j-full.jar


help me to reslove this error, if anyone is familar with this error

with regards,
srini



Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

This is probably a library incompatibility. You probably need to upgrade your slf4j api.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error:Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()
 
Similar Threads
plzzz help out
Exception in thread "main" java.lang.NoSuchMethodError: main
Hibernate+GWT problem related to slf4j
Error:java.lang.NoClassDefFoundError: javax/persistence/EntityList
Java Security Exception