tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27371] - java.lang.ThreadDeath caused by log4j when reloading Tomcat app
Date Tue, 08 Feb 2005 23:42:47 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=27371>.
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=27371





------- Additional Comments From yegor.jbanov@spicesoft.com  2005-02-09 00:42 -------
Hi!

I'm also experiencing ThreadDeath with Log4j on Tomcat 5.0.28 (bundled with
NetBeans 4.0) when restarting applications. I understand you've already seen a
lot of stack traces in this discussion.  So I'll just give a part of mine:

==========================================
Caused by: java.lang.ThreadDeath
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at org.apache.log4j.NDC.get(NDC.java:201)
    at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:229)
etc...
==========================================

Seems like NDC is arranging its instances in a Hashtable with key being the
current thread. That might be the reason of such behaviour. Have you thought of
switching to ThreadLocal? I'm not sure about how it may affect the performance
though.

Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

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


Mime
View raw message