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

LoggerContext.getConfigurationLock() causes NoSuchMethodError #42432

Closed
BlueCaboose42 opened this issue Sep 24, 2024 · 1 comment
Closed

LoggerContext.getConfigurationLock() causes NoSuchMethodError #42432

BlueCaboose42 opened this issue Sep 24, 2024 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@BlueCaboose42
Copy link

Hello,

When trying to use the getConfigurationLock() method of LogbackConfigurator, the following error is thrown (spring boot version 3.3.0):

java.lang.IllegalStateException: java.lang.NoSuchMethodError: 'java.lang.Object ch.qos.logback.classic.LoggerContext.getConfigurationLock()

An issue was raised in logback that seems near identical to what we're experiencing. The issue was closed citing this commit which seems to have been applied to version 3.3.3.

Can the same fix be applied to version 3.3.0?

Current boot version 3.3.0
Logback version 1.5.7, previously 1.5.6 worked fine

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 24, 2024
@wilkinsona
Copy link
Member

wilkinsona commented Sep 24, 2024

We can't apply a fix to 3.3.0 as it's been released and cannot be changed. You should either allow Spring Boot to control the version of Logback so that you're using a compatible version or upgrade to Spring Boot 3.3.3 or later.

Duplicates #41887.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants