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

Failed to load class "org.slf4j.impl.StaticLoggerBinder" #276

Open
arteymix opened this issue Aug 7, 2024 · 1 comment
Open

Failed to load class "org.slf4j.impl.StaticLoggerBinder" #276

arteymix opened this issue Aug 7, 2024 · 1 comment

Comments

@arteymix
Copy link

arteymix commented Aug 7, 2024

I'm getting this error with 5.0.8.Final:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

When debugging, I found that StaticLoggerBinder got shaded:

java.lang.NoClassDefFoundError: org/ocpsoft/prettytime/shade/org/slf4j/impl/StaticLoggerBinder

I suspect it is related to the shading of slf4j-api from fc37c10, SLF4J needs to be able to pick up its implementation at the expected location since it's provided (in our case) by Log4j 2.

@arteymix
Copy link
Author

arteymix commented Aug 7, 2024

Looks like it was introduced in 5.0.7.Final, rolling back to 5.0.6.Final fixes the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant