Uploaded image for project: 'Click'
  1. Click
  2. CLK-706

undeploy in tomcat prints warnings of thread local ContextStack

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0-M1
    • core
    • None
    • Tomcat 6.0.26

    Description

      With tomcat 6.0.26 on windows, starting the examples app, browse a page and press crtl-C in the tomcat window causes tomcat to complain about a possible memory leak:

      SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@bf015]) and a value of type [org.apache.click.Context.ContextStack] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

      It is caused by Context.hasThreadLocalContext() which creates an empty ContextStack if none existed before. Which is called by PerformanceFilter's attempt to find the application version number.

      Attachments

        Activity

          People

            bckfnn Finn Bock
            bckfnn Finn Bock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment