Home > Errors & Exceptions > java – NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format

java – NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format

June 3, 2012

java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; at org.slf4j.impl.JDK14LoggerAdapter.info(JDK14LoggerAdapter.java:304) .......... ........... ............ 

Reason:This kind of errors occurs in 2 cases 
In compatible slf4j version with log4j 
If your class path has multiple slf4j and log4j versions.  

Solution : Below log4j and slf4j combination worked for me. 
log4j-1.2.16.jar 
slf4j-api-1.6.1.jar 
slf4j-log4j12-1.6.4.jar 
Advertisements
Categories: Errors & Exceptions
%d bloggers like this: