Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13203

Mail threads are not stopped properly on webapp shutdown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.4.2
    • Fix Version/s: 8.0, 8.1-milestone-1, 7.4.3
    • Component/s: Mail
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This is causing the following warning in Tomcat when XWiki is stopped:

      10-Mar-2016 15:49:45.820 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [xwiki] appears to have started a thread named [Mail Prepare Thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       java.lang.Thread.sleep(Native Method)
       org.xwiki.mail.internal.thread.PrepareMailRunnable.run(PrepareMailRunnable.java:82)
       java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: