[Bug 228] New: java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder

http://bugzilla.slf4j.org/show_bug.cgi?id=228 Summary: java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder Product: SLF4J Version: 1.6.x Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P1 Component: Core API AssignedTo: slf4j-dev@qos.ch ReportedBy: kevinth.fang@gmail.com This exception thrown when no binding package included in the classpath. I'm using 1.6.1 jar. I think above 1.6 the api jar should not throw this exception because it should use the NOP binding by default. I tried 2 jdks. for sun jdk 1.5 there is no such exceptions. But for ibm jdk 1.6 this exception is thrown. I think the logic in LoggerFactory used to decide the binding is not strong enough. It just search the substring "org/slf4j/impl/StaticLoggerBinder" in the exception message. Different jdks may throw different messages. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=228 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |listid@qos.ch --- Comment #1 from Ceki Gulcu <listid@qos.ch> 2011-07-01 14:10:49 CEST --- Could you provide the stack trace please? -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=228 Kevinth <kevinth.fang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 --- Comment #2 from Kevinth <kevinth.fang@gmail.com> 2011-07-07 05:00:43 CEST --- java.lang.NoClassDefFoundError: org.slf4j.impl.StaticLoggerBinder at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254) at org.tulkas.robot.Configuration.<clinit>(Configuration.java:24) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at org.tulkas.robot.http.Browser$Options._init(Browser.java:111) at org.tulkas.robot.http.Browser$Options.<init>(Browser.java:133) at org.tulkas.robot.http.Browser.<init>(Browser.java:18) Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder at java.net.URLClassLoader.findClass(URLClassLoader.java:419) at java.lang.ClassLoader.loadClass(ClassLoader.java:643) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:320) at java.lang.ClassLoader.loadClass(ClassLoader.java:609) ... 13 more -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=228 jieryn@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jieryn@gmail.com --- Comment #3 from jieryn@gmail.com 2011-08-08 22:23:45 CEST --- This just bit me, I am stuck on IBM JDK 6. Please fix. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=228 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Ceki Gulcu <listid@qos.ch> 2011-08-15 19:54:07 CEST --- Fixed in http://github.com/ceki/slf4j/commit/8eb1912c -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=228 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|listid@qos.ch | --- Comment #5 from Ceki Gulcu <listid@qos.ch> 2011-08-15 19:56:32 CEST --- FYI, the more relevant fix is actually in an earlier commmit [1]. [1] https://github.com/ceki/slf4j/commit/67f86a636d -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@pixie.qos.ch