You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2007/11/02 21:20:56 UTC

DO NOT REPLY [Bug 40212] - NullPointerException in getLogger when called from ShutdownHook

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@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.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org