Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.2
-
None
-
None
Description
When using SLF4J 2.x, I hit the following exception:
java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
This is because org.slf4j.impl.StaticLoggerBinder no longer exists in SLF4J 2.x (see http://www.slf4j.org/codes.html#StaticLoggerBinder). Ideally, Spark should not have a hard dependency on an SFL4J 1.x impl classes.
Perhaps reflection or NoClassDefFoundError try-catch blocks could be used in the logger detection code, so both SLF4J 1.x and 2.x could be supported at runtime.