{"id":2336,"date":"2017-05-21T18:13:26","date_gmt":"2017-05-21T18:13:26","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=2336"},"modified":"2017-05-21T18:17:36","modified_gmt":"2017-05-21T18:17:36","slug":"slf4j-errors","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/slf4j-errors\/","title":{"rendered":"SLF4J Errors"},"content":{"rendered":"<p><strong>java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava\/lang\/String;Ljava\/lang\/Object;)<\/strong><br \/>\n<strong>Solution<\/strong><br \/>\nThe Reason for the above error is version mis-match between the various SLF4J API. (e.g. 1.6.x is not backwards compatible with 1.5.x). Make sure you have no duplicate jars in your classpath. If exists exclude them and add these dependencies to your classpath<\/p>\n<p><strong>pom.xml<\/strong><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;slf4j-api&lt;\/artifactId&gt;\r\n    &lt;version&gt;1.6.2&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;org.slf4j&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;slf4j-log4j12&lt;\/artifactId&gt;\r\n    &lt;version&gt;1.6.2&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/pre>\n<p>In the above code the Version of API and Implementation should be same(i.e. 1.6.2)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava\/lang\/String;Ljava\/lang\/Object;) Solution The Reason for the above error is version mis-match between the various SLF4J API. (e.g. 1.6.x is not backwards compatible with 1.5.x). Make sure you have no duplicate jars in your classpath. If exists exclude them and add these dependencies to your classpath pom.xml &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;\/groupId&gt; &lt;artifactId&gt;slf4j-api&lt;\/artifactId&gt; &lt;version&gt;1.6.2&lt;\/version&gt; &lt;\/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;\/groupId&gt; &lt;artifactId&gt;slf4j-log4j12&lt;\/artifactId&gt;&hellip; <a href=\"https:\/\/codethataint.com\/blog\/slf4j-errors\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233],"tags":[],"class_list":["post-2336","post","type-post","status-publish","format-standard","hentry","category-slf4j"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=2336"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2336\/revisions"}],"predecessor-version":[{"id":2341,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/2336\/revisions\/2341"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=2336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=2336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=2336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}