[slf4j-dev] [Bug 99] New: java.lang.NoSuchMethodError: org.apache.log4j.Logger. isTraceEnabled()Z

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Sep 12 12:11:38 CEST 2008


http://bugzilla.slf4j.org/show_bug.cgi?id=99

           Summary: java.lang.NoSuchMethodError:
                    org.apache.log4j.Logger.isTraceEnabled()Z
           Product: SLF4J
           Version: 1.5.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Implementations
        AssignedTo: dev at slf4j.org
        ReportedBy: davidr at goodserver.com
        Depends on: 68


Same as bug 68, but in jcl-over-slf4j-1.5.2.jar. The SLF4J facade breaks when
the underlying logger is log4j-1.2.12 or earlyer, because it doesn't have the
trace methods. The logging calls completely shut down the current thread,
instead of silently doing nothing, or instead of logging as debug instead of
trace.


java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.isTraceEnabled()Z
        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.isTraceEnabled(SLF4JLocationAwareLog.java:52)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:377)
        at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at
com.synchronica.mg.webdav.exchange.discovery.ExchangeDiscovery.discoverWebAccessStyle(ExchangeDiscovery.java:101)
        at
com.synchronica.mg.webdav.exchange.discovery.DiscoveryTest.testDiscoveryWebAccessStyle2003(DiscoveryTest.java:23)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
        at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the slf4j-dev mailing list