Solved

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

Posted on 2014-02-25
1
280 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 21

Accepted Solution

by:
Amitkumar Panchal earned 500 total points
ID: 39891484
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

895 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

12 Experts available now in Live!

Get 1:1 Help Now