al Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Sunday, February 26, 2012 8:45 PM
To: Tomcat Users List
Subject: Re: SEVERE: The web application created a ThreadLocal (but I
removed it)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nick,
On 2/22/12 7:5
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nick,
On 2/22/12 7:52 PM, Nick Williams wrote:
> Now, at the end of each request, I am calling:
>
> threadLocalInstance.set(null);
>
> threadLocalInstance.remove();
If you are creating a ThreadLocal for each request (that needs the
object) and then
I have been getting the ThreadLocal cleanup warning messages appearing in
the Tomcat log for some time now. I finally got around to investigating
these and cleaning it all up. Most of the ThreadLocals I removed, because
they were being abused. However, some needed to hang around, so I used them
mor