[Bug 153] New: NPE in SLF4JLocationAwareLog during application shutdown

6 messages Options
Embed this post
Permalink
Bugzilla from bugzilla-daemon@pixie.qos.ch

[Bug 153] New: NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
http://bugzilla.slf4j.org/show_bug.cgi?id=153

           Summary: NPE in SLF4JLocationAwareLog during application shutdown
           Product: SLF4J
           Version: 1.5.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Unspecified
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


I can (sometimes) see the following NPE in SLF4JLocationAwareLog during
application shutdown.

[code]
2009-10-20 13:26:26.245 ERROR [STDERR] - java.lang.NullPointerException
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.isDebugEnabled(SLF4JLocationAwareLog.java:67)
[/code]

I'm using slf4j version 1.5.8.


--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev
Bugzilla from bugzilla-daemon@pixie.qos.ch

[Bug 153] NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
http://bugzilla.slf4j.org/show_bug.cgi?id=153





--- Comment #1 from Ceki Gulcu <[hidden email]>  2009-10-20 19:06:55 ---
Can you provide a complete stack trace? A test case would be appreciated as
well.


--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev
Bugzilla from bugzilla-daemon@pixie.qos.ch

[Bug 153] NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bugzilla from bugzilla-daemon@pixie.qos.ch
http://bugzilla.slf4j.org/show_bug.cgi?id=153





--- Comment #2 from akuhtz <[hidden email]>  2009-10-20 19:15:18 ---
This is the stacktrace that I can see in the logfile. Unfortunately I cannot
provide a testcase as I see this only during shutdown of a appserver instance
;-(

2009-10-20 13:26:26.245 ERROR [STDERR] - Exception in thread "InactivityMonitor
ReadCheck"
2009-10-20 13:26:26.245 ERROR [STDERR] - java.lang.NullPointerException
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.isDebugEnabled(SLF4JLocationAwareLog.java:67)
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
org.apache.activemq.transport.InactivityMonitor$1.run(InactivityMonitor.java:71)
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
java.util.TimerThread.mainLoop(Timer.java:512)
2009-10-20 13:26:26.245 ERROR [STDERR] -        at
java.util.TimerThread.run(Timer.java:462)


--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev
Bugzilla from bugzilla-daemon@pixie.qos.ch

[Bug 153] NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bugzilla from bugzilla-daemon@pixie.qos.ch
http://bugzilla.slf4j.org/show_bug.cgi?id=153





--- Comment #3 from Ceki Gulcu <[hidden email]>  2009-10-20 19:21:38 ---
The class loader which loaded your application is probably nulling all static
variables in all classes it loaded. Tomcat's WebClassLoader is known to to this
sort of clean up. It's not an SLF4J issue.


--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev
rgoers

Re: [Bug 153] NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
I would suggest asking on the ActiveMQ list if there is a graceful way to shutdown the InactivityMonitor thread.


_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev
Bugzilla from bugzilla-daemon@pixie.qos.ch

[Bug 153] NPE in SLF4JLocationAwareLog during application shutdown

Reply Threaded More More options
Print post
Permalink
In reply to this post by Bugzilla from bugzilla-daemon@pixie.qos.ch
http://bugzilla.slf4j.org/show_bug.cgi?id=153


akuhtz <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #4 from akuhtz <[hidden email]>  2009-10-21 09:44:47 ---
Thanks for the explanation!


--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[hidden email]
http://www.slf4j.org/mailman/listinfo/dev