File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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

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

srinivas Doni

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-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,

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.
I agree. Here's the link:
subject: Error:Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()
It's not a secret anymore!