logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43867] NOPLoggerRepository error during shutdown
Date Tue, 08 Jul 2008 09:42:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43867





--- Comment #33 from Aaron Digulla <digulla@hepe.com>  2008-07-08 02:42:20 PST ---
Re comment 25:

Dan,

Code from deployed webapps is never executed in the main thread. Tomcat creates
worker threads for that. So what your app is doing is the second thing I
mentioned in comment 23: It's adding code to some hook (VM shutdown hooks, for
example).

org.apache.catalina.loader.WebappClassLoader.clearReferences() triggers the bug
by overwriting all static variables in your webapp (classes and JARs) with
null. It's not the place where you made the mistake; it's just the place where
you notice you made it.

All your other questions have been answered before, too, like the reason why
log4j can't give you a useful stack trace. To be able to do that, log4j would
need to intercept all writes to static variables and remember the stack traces
when they happen. I know of no VM which allows that in an efficient manner.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message