Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" #31

Closed
visola opened this issue Jun 20, 2014 · 6 comments
Assignees
Labels

Comments

@visola
Copy link

visola commented Jun 20, 2014

I started having this problem after I updated from version 0.0.17 to 0.0.24. It seems that it started happening between version 0.0.23 and 0.0.24.

It seems to be some conflict between SLF4J versions from Jetty and the one I and Spring are using. I'm using only API version 1.7.6. You can see the whole code here: https://github.com/visola/bearprogrammer-examples/tree/master/gradle-integration-test

It's a sample that I've been working for a blog post that I'm writing. If you download that code and run jettyRun you should get the the error and the stack trace. I'm attaching a part of the log:

screen shot 2014-06-20 at 5 47 13 pm

I'm running in Oracle Java 7.0.60:

------------------------------------------------------------
Gradle 1.10
------------------------------------------------------------

Build time:   2013-12-17 09:28:15 UTC
Build number: none
Revision:     36ced393628875ff15575fa03d16c1349ffe8bb6

Groovy:       1.8.6
Ant:          Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:          2.2.0
JVM:          1.7.0_60 (Oracle Corporation 24.60-b09)
OS:           Mac OS X 10.9.3 x86_64
@akhikhl
Copy link
Owner

akhikhl commented Jun 21, 2014

OK, I'll have a look at the problem and find a solution.

@akhikhl akhikhl self-assigned this Jun 21, 2014
@akhikhl
Copy link
Owner

akhikhl commented Jun 21, 2014

The problem is reproducible on jdk-7, not reproducible on jdk-8.
Fix for jdk-7:

runtime 'ch.qos.logback:logback-classic:1.1.2'

@visola
Copy link
Author

visola commented Jun 21, 2014

Thanks for looking into this. I was stuck for a few days until I finally managed to scope down the problem. Do you know what exactly this is all about? Adding logback sounds more like a work around. If someone would like to use some other logging implementation with SLF4J, this may not be an option.

@akhikhl
Copy link
Owner

akhikhl commented Jun 22, 2014

That was a quick and dirty solution, yes. I'll look deeper into dependencies of your project to understand what's the root of the problem.

@alexejk
Copy link

alexejk commented Aug 13, 2014

I'm actually getting this problem on JDK-8.. it was working perfectly until today and now the whole hell broke loose and it doesn't seem to be working for me anymore :(

Did you have a chance to dig into this more?

@akhikhl
Copy link
Owner

akhikhl commented Aug 24, 2014

@alexejk, please open a new issue and post the complete log (if inconvenient to post it on github, send it over email).

@akhikhl akhikhl closed this as completed Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants