You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/11/09 09:39:51 UTC
[Bug 62897] New: Provide a property to disable
WebappClassLoaderBase.checkThreadLocalsForLeaks()
https://bz.apache.org/bugzilla/show_bug.cgi?id=62897
Bug ID: 62897
Summary: Provide a property to disable
WebappClassLoaderBase.checkThreadLocalsForLeaks()
Product: Tomcat 9
Version: 9.0.x
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: awilkinson@pivotal.io
Target Milestone: -----
When running on Java 11 with clearReferencesObjectStreamClassCaches and
clearReferencesRmiTargets both set to false, a number of reflective access
warnings are still generated when the web app class loader is stopped:
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/Users/awilkinson/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar)
to field java.lang.Thread.threadLocals
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/Users/awilkinson/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar)
to field java.lang.Thread.inheritableThreadLocals
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/Users/awilkinson/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar)
to field java.lang.ThreadLocal$ThreadLocalMap.table
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/Users/awilkinson/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar)
to method java.lang.ThreadLocal$ThreadLocalMap.expungeStaleEntries()
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/Users/awilkinson/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.12/tomcat-embed-core-9.0.12.jar)
to field java.lang.ThreadLocal$ThreadLocalMap$Entry.value
I believe these all originate from code that's called by
WebappClassLoaderBase.checkThreadLocalsForLeaks(). It would be useful to have a
property that allows these checks to be disabled in the same way as the others.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62897] Provide a property to disable
WebappClassLoaderBase.checkThreadLocalsForLeaks()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62897
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.14 onwards
- 8.5.x for 8.5.36 onwards
- 7.0.x for 7.0.93 onwards
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 62897] Provide a property to disable
WebappClassLoaderBase.checkThreadLocalsForLeaks()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62897
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xxammuxx@gmail.com
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
*** Bug 62901 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org