Mixing different versions of slf4j jars will always be troublesome The NoSuchMethodError is due to the discovery of Methods-with-the-same-name more than once, probably coming from the different versions of the same jars. I replace the versions of both libraries included as transitive dependencies, putting in my pom this:. Client code compiled with slf4j-api-N. Sign up using Facebook. Did you clean up your environment when you switched to 1. So, I excluded getting logback too by adding these exclusions to slf4j ones already there: So, I excluded getting logback too by adding these exclusions to slf4j ones already there:.
Uploader: | Vibei |
Date Added: | 6 September 2010 |
File Size: | 57.8 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 8031 |
Price: | Free* [*Free Regsitration Required] |
Download slf4j-apijar : slf4j api « s « Jar File Download
It looks like logback 0. Sign up or log in Sign up using Google.
NOTE From the client's perspective all versions of slf4j-api are compatible. For example, if you are using slf4j-api We have to align the versions of slf4j-api and the corresponding binding, in my case I was using slf4j-log4j12, acording with the documentation of SLF4J: You only need to ensure that the version of alf4j binding matches that of the slf4j-api.
Hope this helps others. Post as a guest Name. Stack Overflow works best with JavaScript enabled. So, I excluded getting logback too by adding these exclusions to slf4j ones already there: At initialization time, 1.55 SLF4J wlf4j that there may be a api vs.
It very much looks like the version of slf4j-api. The NoSuchMethodError is due to the discovery of Methods-with-the-same-name more than once, probably coming from the different versions of the same jars. Somehow that jar overrides org.
Download slf4j-api-1.5.5.jar : slf4j api « s « Jar File Download
Mixing different versions of slf4j-api. Sign up using Email and Password. Russ Bateman Russ Bateman Check your class path. I had the exact same error message. An SLF4J binding designates an artifact such as slf4j-jdk I replace the versions of both libraries included as transitive dependencies, putting in my pom this:.
By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.
LoggerFactory - JAR Search -
Exception in thread "main" java. Travis 1, 1 1 gold badge 20 20 silver badges 34 34 bronze badges. I mix a lot of software from diverse sources together in my product.
How do we handle problem users? I had already insisted in pom.
Active 2 years, 1 month ago. Improving the question-asking experience.
Also, you must have a many slf4j-api jars of versions mentioned in the []. So, I excluded uar logback too by adding these exclusions to slf4j ones already there:.
You can always use any version of slf4j-api. Sign up using Facebook.
Unicorn Meta Zoo 9: I am using jdk1. Most often, it comes from a dependency of a dependency,
No comments:
Post a Comment