Solved

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

Posted on 2014-02-25
1
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 53
Glassfish admin console not working 1 61
Tagging and Merging on Branch 1 44
$_SERVER Variable question 31 56
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

726 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