ICEfaces
  1. ICEfaces
  2. ICE-10377

showcase - server error when un-installing application

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces4 trunk r. 43281
      Browsers: all
      Server: Tomcat7.0.42

      Description

      Un-deploying the showcase application causes server side errors:

      INFO: Undeploying context [/showcase]
      Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/showcase] appears to have started a thread named [Timer-6] but has failed to stop it. This is very likely to create a memory leak.
      Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/showcase] appears to have started a thread named [Timer-9] but has failed to stop it. This is very likely to create a memory leak.
      Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/showcase] appears to have started a thread named [Timer-10] but has failed to stop it. This is very likely to create a memory leak.
      Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/showcase] appears to have started a thread named [Timer-11] but has failed to stop it. This is very likely to create a memory leak.
      Oct 29, 2014 12:44:15 PM org.apache.catalina.startup.SetAllPropertiesRule begin

        Activity

        Hide
        Liana Munroe added a comment - - edited

        Tested with r43281 using Myfaces JSF. Please note that mobile-showcase was also tested on an android device during this deployment.

        Server error seen when un-installing showcase application:
        Oct 30, 2014 12:58:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/showcase] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
        Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar deleteDir
        SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems
        Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar delete
        SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems

        Show
        Liana Munroe added a comment - - edited Tested with r43281 using Myfaces JSF. Please note that mobile-showcase was also tested on an android device during this deployment. Server error seen when un-installing showcase application: Oct 30, 2014 12:58:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/showcase] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak. Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar deleteDir SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar delete SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems
        Hide
        Mircea Toma added a comment - - edited

        This issue seems to have been resolved by the fixes for ICE-10408 (rev. #43576).

        There's still this SEVERE message shown when running with Mojarra:

        Dec 2, 2014 11:23:33 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
        SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.faces.application.ApplicationAssociate$1@2ed7c530]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application.ApplicationAssociate@57d2ea56]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 
        

        After debugging it turns out that the ThreadLocal is created by Mojarra in com.sun.faces.application.ApplicationAssociate.

        Show
        Mircea Toma added a comment - - edited This issue seems to have been resolved by the fixes for ICE-10408 (rev. #43576). There's still this SEVERE message shown when running with Mojarra: Dec 2, 2014 11:23:33 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.faces.application.ApplicationAssociate$1@2ed7c530]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application.ApplicationAssociate@57d2ea56]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. After debugging it turns out that the ThreadLocal is created by Mojarra in com.sun.faces.application.ApplicationAssociate .
        Hide
        Mircea Toma added a comment -
        Show
        Mircea Toma added a comment - Attaching test app for https://java.net/jira/browse/JAVASERVERFACES-3560 .
        Hide
        Mircea Toma added a comment -

        Modified ICEpush bridge to shutdown blocking connection on beforeUnload. This aborts the blocking connection and unblocks the corresponding thread on the server.

        Show
        Mircea Toma added a comment - Modified ICEpush bridge to shutdown blocking connection on beforeUnload. This aborts the blocking connection and unblocks the corresponding thread on the server.
        Hide
        Liana Munroe added a comment -

        Tested with ICEfaces 4 trunk r43821.
        After using the cloud push demo (simple push, priority push), then undeploying showcase, the following server errors are seen:
        INFO: Waiting for 1 instance(s) to be deallocated for Servlet [Faces Servlet]
        Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak.
        Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
        SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak.
        Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
        SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.face
        s.application.ApplicationAssociate$1@10d318f2]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application
        .ApplicationAssociate@130ac07f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

        When using a few random demos in ACE showcase then undeploying .war file no server errors were seen.
        When using the test application https://java.net/jira/browse/JAVASERVERFACES-3560 no server errors were seen.

        Show
        Liana Munroe added a comment - Tested with ICEfaces 4 trunk r43821. After using the cloud push demo (simple push, priority push), then undeploying showcase, the following server errors are seen: INFO: Waiting for 1 instance(s) to be deallocated for Servlet [Faces Servlet] Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak. Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.face s.application.ApplicationAssociate$1@10d318f2]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application .ApplicationAssociate@130ac07f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. When using a few random demos in ACE showcase then undeploying .war file no server errors were seen. When using the test application https://java.net/jira/browse/JAVASERVERFACES-3560 no server errors were seen.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: