[concurrency-interest] Final field set null on thread termination

Tim Eck teck at terracottatech.com
Fri Oct 1 05:38:11 EDT 2010


> The application is a webapp deployed in tomcat. Whenever the context is
> reloaded all the logging threads are shutdown.

I wonder if tomcat's reference clearing stuff is the cause of this?

Setting
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=fal
se would be a quick test to see if it stops the NullPointerException. 

For source minded:
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_29/java/org
/apache/catalina/loader/WebappClassLoader.java




More information about the Concurrency-interest mailing list