ICEfaces
  1. ICEfaces
  2. ICE-5857

Logging issue on Tomcat6 server

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Beta1, 1.8.2-EE-GA_P02
    • Fix Version/s: 2.0-Beta1, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Tomcat6 server only

      Description

      Following message is seen in the server log for all regression test run on Tomca6 server.
      It is causing problems in our log reports.

      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: A web application appears to have started a thread named [Session Monitor] but has failed to stop it. This is very likely to create a memory leak.
      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.icefaces.application.WindowScopeManager.CurrentScopeThreadLocal] (value [org.icefaces.application.WindowScopeManager$CurrentScopeThreadLocal@38d748]) and a value of type [java.lang.String] (value [psg99f5dt2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.icefaces.application.WindowScopeManager.CurrentScopeThreadLocal] (value [org.icefaces.application.WindowScopeManager$CurrentScopeThreadLocal@38d748]) and a value of type [java.lang.String] (value [psg99f5dt2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.icefaces.application.WindowScopeManager.CurrentScopeThreadLocal] (value [org.icefaces.application.WindowScopeManager$CurrentScopeThreadLocal@38d748]) and a value of type [java.lang.String] (value [psg99f5dt2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.icefaces.application.WindowScopeManager.CurrentScopeThreadLocal] (value [org.icefaces.application.WindowScopeManager$CurrentScopeThreadLocal@38d748]) and a value of type [java.lang.String] (value [psg99f5dt2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
      May 15, 2010 11:21:58 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.icefaces.application.WindowScopeManager.CurrentScopeThreadLocal] (value [org.icefaces.application.WindowScopeManager$CurrentScopeThreadLocal@38d748]) and a value of type [java.lang.String] (value [psg99f5dt2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
      May 15, 2010 11:21:59 PM org.apache.catalina.startup.HostConfig checkResources
      INFO: Undeploying context [/ICE-751]

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          This log issue is preventing QA's automated testing system from being able to detect failures in the logs after tests are run, because there is always failures reported due to this issue.

          Show
          Ken Fyten added a comment - This log issue is preventing QA's automated testing system from being able to detect failures in the logs after tests are run, because there is always failures reported due to this issue.
          Hide
          Mircea Toma added a comment -

          Refactored WindowScopeManager to use a request attribute instead of the thread local in order to associate the window scope IDs to the incoming requests.

          Show
          Mircea Toma added a comment - Refactored WindowScopeManager to use a request attribute instead of the thread local in order to associate the window scope IDs to the incoming requests.
          Hide
          Mircea Toma added a comment -

          The 'Session Monitor' thread was removed by the fixes for ICE-5756.

          Show
          Mircea Toma added a comment - The 'Session Monitor' thread was removed by the fixes for ICE-5756 .
          Hide
          Mandeep Hayher added a comment -

          Verified as successfully during nightly regression test on Glimmer revision# 21838.

          Show
          Mandeep Hayher added a comment - Verified as successfully during nightly regression test on Glimmer revision# 21838.
          Hide
          Ken Fyten added a comment -

          Testing with Mojarra 2.0.3 shows this issue has returned...

          mojarra-2.0.3-FCS-binary
          Glimmer revision: 21849
          Server: Tomcat 6.0.26
          Browser: FF3.6

          Logging looks messy. The following message is output for all the test cases:

          6-Jul-2010 9:10:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
          SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.util.Util$1@d631b4])
          and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped.
          To prevent a memory leak, the ThreadLocal has been forcibly removed

          Show
          Ken Fyten added a comment - Testing with Mojarra 2.0.3 shows this issue has returned... mojarra-2.0.3-FCS-binary Glimmer revision: 21849 Server: Tomcat 6.0.26 Browser: FF3.6 Logging looks messy. The following message is output for all the test cases: 6-Jul-2010 9:10:25 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.util.Util$1@d631b4] ) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}] ) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed
          Hide
          Mircea Toma added a comment -

          This message is due to the new Mojarra 2.0.3 code. com.sun.faces.util.Util in 2.0.3 uses a ThreadLocal where the same class in 2.0.2 didn't. We cannot fix this issue, the message must have slipped unnoticed when 2.0.3 was released.

          Show
          Mircea Toma added a comment - This message is due to the new Mojarra 2.0.3 code. com.sun.faces.util.Util in 2.0.3 uses a ThreadLocal where the same class in 2.0.2 didn't. We cannot fix this issue, the message must have slipped unnoticed when 2.0.3 was released.
          Hide
          Ted Goddard added a comment -
          Show
          Ted Goddard added a comment - Bug filed with mojarra: https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1730

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Mandeep Hayher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: