Skip to content
New issue

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

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

Already on GitHub? # to your account

NoSuchMethodError on org.slf4j.Logger.atDebug() #8

Closed
mboullouz opened this issue Feb 13, 2022 · 5 comments
Closed

NoSuchMethodError on org.slf4j.Logger.atDebug() #8

mboullouz opened this issue Feb 13, 2022 · 5 comments

Comments

@mboullouz
Copy link

I'm playing with this great 🥇 library inside Spring Boot (Java 17) web app,
but for unknown reason I get this exception :
java.lang.NoSuchMethodError: 'org.slf4j.spi.LoggingEventBuilder org.slf4j.Logger.atDebug()'
I'm using maven latest version : 1.0.2
My intuition is that maven is picking the wrong version of self4j but I'm not familiar with maven exclusions strategies on Pom lavel
Any hint on how to solve this ?

@SandroHc
Copy link
Owner

SandroHc commented Feb 13, 2022

The issue you're facing is happening because the dependency spring-boot-starter-logging comes with its own version of slf4j-api (currently 1.7.32), whereas this library uses an experimental version (2.0.0-alpha1).

Using an experimental version of a dependency on a published library is never a good idea, so I'll migrate to the latest stable version.

I'll release version 1.1.0 in a few hours to fix this issue.

@SandroHc
Copy link
Owner

Version 1.1.0 has been released. 🎉

Can you upgrade to this version and confirm that your issue is fixed?

@mboullouz
Copy link
Author

mboullouz commented Feb 13, 2022

Thank you very much @SandroHc , great job 👍
One last thing, is it possible to support search for users : https://api.jikan.moe/v4/users ?
Currently we are using RestTemplate but it's very ugly and lacks Typesafety
(I'm open to a small $ contribution, let me know if you have paypal or something similar)

@SandroHc
Copy link
Owner

SandroHc commented Feb 13, 2022

Thank you for confirming the fix, I'll close this issue now.

As for your other request, the endpoint getUsersSearch is only available on V4 of the Jikan API, but unfortunately this library only supports V3. I have created #9 to track the migration to V4.

@SandroHc
Copy link
Owner

Just read your edit. Although your gesture is greatly appreciated, it would be more beneficial to support the maintainers of the Jikan API directly - https://patreon.com/jikan. They're the ones doing the bulk of the work and the ones with the server/infrastructure costs! 😁

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

No branches or pull requests

2 participants