-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
logback-classic 1.4.9 contains breaking change that breaks Play #11907
Comments
Can confirm. Play just breaks with the same stack trace that you provided. |
Having the issue as well. To be fair, the method was deprecated in logback for some time already. |
This affects also people using logback |
In case someone wants to know without going to Logback's history (qos-ch/logback@4b06e06), Play is working well with logback 1.4.8 |
Bites us in playframework/play-samples#383 |
This method was deprecated with logback PATCH release 1.4.6 (commit) and removed in logback PATCH release 1.4.9 (commit), so I can not support the statement "the method was deprecated in logback for some time already". This is very very bad bad practise from logback IMHO, since it's common practise to not break code and/or remove methods and/or classes in patch releases (except if it is absoluty necessary and unavoidable in case of security bug fixes, but then it should be mentioned in release notes including migration steps). |
BTW: Others running in the problem as well, it's definitely not just Play: https://mailman.qos.ch/pipermail/logback-user/2023-August/005288.html |
Indeed. I only saw it was deprecated and assumed it was for at least 1 minor version. I meant no offense to Play maintainers ;) |
😉 Don't worry, just wanted to clarify. Taking a look now at this. |
Play 2.8.21 is available which now allows you to upgrade Logback: https://github.com/playframework/playframework/releases/tag/2.8.21 |
logback-classic 1.4.9 removed a public method from their API that's used by Play. I haven't looked more closely, but I suspect this version would break any Play app that uses Logback? This is the stacktrace I get from our integration tests:
To be clear: this sucks, and IMO they shouldn't do this. But apparently their guidance on this is "just copy the method into your own code". This is the commit that removed the method: qos-ch/logback@4b06e06 Presumably this is the newest version of this code.
Play Version
2.8.19, but likely older as well
API
Scala, but probably either
Operating System
Linux, but probably all OS
JDK
JDK 11 ("Amazon.com Inc. Java 11.0.18"), but probably others as well
Library Dependencies
ch.qos.logback:logback-classic 1.4.9
Expected Behavior
Play doesn't crash on startup and logback logging works.
Actual Behavior
Play crashes on startup. This is the stacktrace when actually running the application:
The text was updated successfully, but these errors were encountered: