您的位置:首页 > 移动开发

错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

2013-09-15 08:24 1371 查看
tomcat reload显示错误:SEVERE: The web application [/Interceptor] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@302b4e8e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6b326556]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

在写Annotation注解的时候,使用了@InterceptorRef(value="tt"),如果“tt”不存在,将会出现上面的问题

或者是在XML中action无法找到对应的class也会出错

今天刚发现了另一种情况,当你用注解时指定的父包不存在也会出现这类问题:

@ParentPackage("default-struts")

其中default-struts写反了,应该是struts-default
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐