-
Notifications
You must be signed in to change notification settings - Fork 626
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
New SQLite 3.43.2.0 fails when logging exceptions if the logger framework is SLF4J 1.7 #990
Comments
I observe similar using
with
Just guessing - classworlds lists slf4j-api v2 but I suppose it's too late as maven (3.8, 3.9) itself uses slf4j v1.7 and In my case the actual logger is of |
You need slf4j 2 |
@gotson It is a little more complicated. For instance, I have 4 applications using slf4j 1.7 that had a regression due to this issue. Until now, I had a 50% success rate in making them work:
|
It seems to me that those are dependency problems in your project / builds. |
Hello, Looking at the PR it seems the contribution is making use of the new SLF4J fluent API which is supposed to bring some performance improvements, despite there are no benchmarks associated to it. |
I completely agree with the two latest comments, it is a clear dependency problem that @vietk explain very well. The point is that here, a change in a patch version is forcing an update to the major version of other components (e.g. I guess that if I update Spring Boot from v2.7 to 3.1 the problem will disappear, but this will also require an update to Java 17). |
That would only be relevant if the project was using semVer, which is not the case. |
This is preventing us from using v3.43.2.0 in a Gradle Plugin because of this limitation in Gradle |
Closes: #990 Co-authored-by: Gauthier Roebroeck <[email protected]>
|
@gotson I confirm |
🎉 This issue has been resolved in |
Build fixed on my side too, thanks @gotson for the reactivity |
redefine sqlite version to fix #990 xerial/sqlite-jdbc#990
redefine sqlite version to fix #990 xerial/sqlite-jdbc#990
Describe the bug
I'm using SLF4J 1.7 and updated to the latest SQLite 3.43.2.0. When opening a connection, a
java.lang.NoSuchMethodError
exception is produced atorg.slf4j.Logger.atTrace()
The possible reason is that SQLite 3.43.2.0 (21c77a4) uses the new SLF4J 2.0 fluent api (e.g.
org.slf4j.Logger.atTrace()
) that is not available in SLF4J 1.7To Reproduce
Open a connection using SQLite 3.43.2.0 using SLF4J 1.7 as your logging framework: the exception is raised
Expected behavior
No exception should be raised
Logs
Log trace:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: