[slf4j-dev] [Bug 79] NullPointerException in SLF4JLocationAwareLog.debug
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Thu Mar 5 18:59:16 CET 2009
http://bugzilla.slf4j.org/show_bug.cgi?id=79
--- Comment #15 from Eric Vargo <evargo at business.com> 2009-03-05 18:59:15 ---
Here is the relevant info about my environment:
jdk 1.5.0_15
tomcat 6.0.18
spring 2.5.6
slf4j 1.5.6
jcl over slf4j 1.5.6
I'm not doing the serialization myself, Tomcat is. I see this error when
Tomcat invalidates a session. We place objects into Spring's session scope,
and I believe when this happens, a spring wrapper is place around our objects.
The error is in some code that spring is running from an event tied to
valueUnbound. The spring code is using JCL for logging and it eventually tries
to call isDebugEnabled() and that is when I see the error. Here is a sample
stacktrace:
java.lang.NullPointerException
at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.isDebugEnabled(SLF4JLocationAwareLog.java:59)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:201)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:182)
at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:160)
at
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:140)
at
org.springframework.beans.factory.support.DisposableBeanAdapter.run(DisposableBeanAdapter.java:134)
at
org.springframework.web.context.request.ServletRequestAttributes$DestructionCallbackBindingListener.valueUnbound(ServletRequestAttributes.java:269)
at
org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1654)
at
org.apache.catalina.session.StandardSession.expire(StandardSession.java:756)
Let me know if you need more info from me.
--
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