[slf4j-dev] [Bug 79] NullPointerException in SLF4JLocationAwareLog.debug

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri May 16 13:42:49 CEST 2008


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





------- Comment #4 from cameron at braid.com.au  2008-05-16 13:42 -------
I am getting this exception in tomcat when shutting down :

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.log.Slf4jLog.warn(Slf4jLog.java:128)
        at org.mortbay.log.Log.warn(Log.java:183)
        at org.mortbay.log.Slf4jLog.getLogger(Slf4jLog.java:142)
        at org.mortbay.log.Log.getLogger(Log.java:196)
        at com.sun.org.apache.commons.logging.JettyLog.<init>(JettyLog.java:36)
        at
com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java:35)
        at
org.apache.jasper.runtime.PageContextImpl.<clinit>(PageContextImpl.java:109)
        at sun.misc.Unsafe.ensureClassInitialized(Native Method)
        at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
        at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
        at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
        at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
        at java.lang.reflect.Field.set(Field.java:657)
        at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1615)
        at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1495)
        at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707)
        at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4534)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
        at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
        at
org.apache.catalina.core.StandardService.stop(StandardService.java:584)
        at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
        at org.apache.log4j.NDC.get(NDC.java:209)
        at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:238)
        at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:93)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
        at org.apache.log4j.Category.callAppenders(Category.java:203)
        at org.apache.log4j.Category.forcedLog(Category.java:388)
        at org.apache.log4j.Category.log(Category.java:853)
        at org.slf4j.impl.Log4jLoggerAdapter.warn(Log4jLoggerAdapter.java:401)
        ... 34 more
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mortbay.log.Slf4jLog.warn(Slf4jLog.java:126)
        at org.mortbay.log.Log.warn(Log.java:175)
        at org.mortbay.log.Log.unwind(Log.java:210)
        at org.mortbay.log.Log.warn(Log.java:184)
        at org.mortbay.log.Slf4jLog.getLogger(Slf4jLog.java:142)
        at org.mortbay.log.Log.getLogger(Log.java:196)
        at com.sun.org.apache.commons.logging.JettyLog.<init>(JettyLog.java:36)
        at
com.sun.org.apache.commons.logging.LogFactory.getLog(LogFactory.java:35)
        at
org.apache.jasper.runtime.PageContextImpl.<clinit>(PageContextImpl.java:109)
        at sun.misc.Unsafe.ensureClassInitialized(Native Method)
        at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
        at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
        at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
        at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
        at java.lang.reflect.Field.set(Field.java:657)
        at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1615)
        at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1495)
        at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707)
        at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4534)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
        at
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
        at
org.apache.catalina.core.StandardService.stop(StandardService.java:584)
        at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:616)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:591)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
        at org.apache.log4j.NDC.get(NDC.java:209)
        at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:238)
        at org.apache.log4j.AsyncAppender.append(AsyncAppender.java:93)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
        at org.apache.log4j.Category.callAppenders(Category.java:203)
        at org.apache.log4j.Category.forcedLog(Category.java:388)
        at org.apache.log4j.Category.log(Category.java:853)
        at org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:485)
        ... 36 more


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



More information about the slf4j-dev mailing list