2 Nov 2007 21:20
DO NOT REPLY [Bug 40212] - NullPointerException in getLogger when called from ShutdownHook
<bugzilla <at> apache.org>
2007-11-02 20:20:56 GMT
2007-11-02 20:20:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40212>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=40212 ------- Additional Comments From digulla <at> hepe.com 2007-11-02 13:20 ------- I've followed the bugs mentioned there and I concur: log4j is probably being confused by the Tomcat classloader clearing all static fields on unload. This also means that the usual setup (one log4j/commons-logging per tomcat and per webapp) to get logging per webapp is not safe; if we get NPEs after reload, this means that tomcat somehow mixes different instances of log4j (because after reload, there shouldn't be *anything* reachable from the last run even if the GC couldn't throw the classes out, yet). -- -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
RSS Feed