[Bug 62897] New: Provide a property to disable WebappClassLoaderBase.checkThreadLocalsForLeaks()

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 62897] New: Provide a property to disable WebappClassLoaderBase.checkThreadLocalsForLeaks()

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 62897] Provide a property to disable WebappClassLoaderBase.checkThreadLocalsForLeaks()

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62897

Mark Thomas <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 62897] Provide a property to disable WebappClassLoaderBase.checkThreadLocalsForLeaks()

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62897

Mark Thomas <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from Mark Thomas <[hidden email]> ---
*** 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: [hidden email]
For additional commands, e-mail: [hidden email]