Re: Axis 1.4 ThreadLocal

2010-12-15 Thread Srikanth Konjarla
Chris, As I have mentioned earlier, I have following code in one of the "finally" blocks. Field dbfield = ReflectionUtil.getDeclaredField(XMLUtils.class, "documentBuilder"); ThreadLocal db = (ThreadLocal) dbfield.get(null); if (db !=

Re: Axis 1.4 ThreadLocal

2010-12-14 Thread Srikanth Konjarla
Pid,Chris Thanks for your reponses. Meanwhile, I have come up with the following code in the app to clear threadlocals for a thread. I have a ReflectionUtil class that actually sets the accessible to true on the Field after obtaining it via reflection. -

Re: Axis 1.4 ThreadLocal

2010-12-14 Thread Pid
On 13/12/2010 20:56, Ebert, Chris wrote: > I haven't solved this specific issue but (when the object isn't directly > accessible, which I assume is the case) you could: > > 1) find the nearest accessible object to the field you want. > 2) get the field value using reflection, setting accessibilit

RE: Axis 1.4 ThreadLocal

2010-12-13 Thread Ebert, Chris
I haven't solved this specific issue but (when the object isn't directly accessible, which I assume is the case) you could: 1) find the nearest accessible object to the field you want. 2) get the field value using reflection, setting accessibility if need be. 3) Do what you need to: clear the thr

Re: Axis 1.4 ThreadLocal

2010-12-13 Thread Pid
On 13/12/2010 02:31, Srikanth Konjarla wrote: > All, > > I have a webapp that uses Axis 1.4 as client. I see few ThreadLocal > forcible removed error messages in tomcat log file during undeploy > process of the application which suggests me that there exists some kind > of memory leak due to the w

Axis 1.4 ThreadLocal

2010-12-12 Thread Srikanth Konjarla
All, I have a webapp that uses Axis 1.4 as client. I see few ThreadLocal forcible removed error messages in tomcat log file during undeploy process of the application which suggests me that there exists some kind of memory leak due to the way certain ThreadLocals are handled by Axis 1.4. Here are