现在的位置: 首页 > 综合 > 正文

关于tomcat6 reload 时 报:A web application created a ThreadLoca……的错误信息

2018年06月08日 ⁄ 综合 ⁄ 共 770字 ⁄ 字号 评论关闭

A web application created a
ThreadLocal with key of type

[
org
.
springframework
.
core
.
NamedThreadLocal
]




(
value
[
Transactional resources
])
and

a value of type
[
null
] (
value
[
null
])
but failed to remove it
when the web





application was stopped
.
To prevent a memory leak
,
the ThreadLocal has been forcibly removed
.





 

springsource给出的解释


The new Tomcat 6 adds a series of listeners to prevent against memory
leaks and one of them, is against ThreadLocals. Unfortunately, there's
no public API to deliberately remove ThreadLocals which rely on garbage
collection. This is not something that affects only Spring but _all_
applications that create a ThreadLocal.
I've raised this with some of the Tomcat committeers who are looking
into this.
Anyway, the messages are harmless and the runtime should not be affected
by it.

也是就是说,该错误信息不影响server的运行!!!!

 

 

链接:http://forum.springsource.org/showthread.php?t=84202

抱歉!评论已关闭.