Solved

[ww-3772] Strust 2, Thread Locals reported by Tomcat after web application is stopped

Posted on 2014-02-25
1
279 Views
Last Modified: 2014-03-14
Dear Experts,

I'm using Strust 2, version 2.2.1.1 on Tomcat version 6.0.26.
And there's a error message when web application is closed:
SEVERE: The web application [/myapp] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1376afa]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@15075f9]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

I searched and found that there's a report that this problem was fixed on Strust 2, version 2.3.3.

The problem is I can not change version of Strust without permission.
And thought, I must test all my web application again to ensure it run normally on new version of Strust.

So, how can I fix this problem without changing the version of Strust.
Please help.

Regards.
0
Comment
Question by:FSOFT-SA
1 Comment
 
LVL 20

Accepted Solution

by:
Amitkumar Panchal earned 500 total points
Comment Utility
Try the following out..

1. Get the version which has the fix to the problem is solved.
2. extract /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/inject/ContainerImpl.java file from src
3. Create a similar package structure (com/opensymphony/xwork2/inject) in your application and place this ContainerImpl.java file inside
4. Rebuild your code and check this out.

Hope this helps.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATEā€¦
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secureā€¦
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now