Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-49228

Thread not closed at org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder causing memory leaks on shutdown when the Sharepoint Hook deployed

    Details

      Description

      It looks like there's an inconsistent memory leak in DM tests.

      Failing in--
      ee-6.2.x:
      1. https://build.liferay.com/1/view/test-portal-branch-upstream-frontend-tomcat-mysql(ee-6.2.x)/job/test-portal-branch-upstream-frontend-tomcat-mysql%5Bportal-document-management%5D(ee-6.2.x)/label_exp=!build-1,test=PGDocumentsandmediaTestCase%23testAddDocument/6/

      2. https://build.liferay.com/1/view/test-portal-branch-upstream-frontend-tomcat-mysql(ee-6.2.x)/job/test-portal-branch-upstream-frontend-tomcat-mysql%5Bportal-document-management-ee%5D(ee-6.2.x)/6/testReport/

      Master:
      1. https://build.liferay.com/1/view/test-portal-branch-upstream-frontend-tomcat-mysql(master)/job/test-portal-branch-upstream-frontend-tomcat-mysql%5Bportal-document-management%5D(master)/label_exp=!build-1,test=PGDocumentsandmediaTestCase%23testAddDocument/

      Test failure:

      [junit] Running com.liferay.portalweb.portal.evaluatelog.EvaluateLogTestSuite
          [junit] Testsuite: com.liferay.portalweb.portal.evaluatelog.EvaluateLogTestSuite
          [junit] 
          [junit] Exception Line:
          [junit] 
          [junit]      [exec] SEVERE: The web application [/sharepoint-hook] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@796ebd67]) and a value of type [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl] (value [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl@5554f379]) 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.
          [junit] 
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec
          [junit] 
          [junit] Testcase: testEvaluateLog(com.liferay.portalweb.portal.evaluatelog.EvaluateLogTest):	FAILED
          [junit] null
          [junit] junit.framework.AssertionFailedError
          [junit] 	at com.liferay.portalweb.portal.evaluatelog.EvaluateLogTest.testEvaluateLog(EvaluateLogTest.java:33)
          [junit] 	at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
          [junit] 
          [junit] 
          [junit] Test com.liferay.portalweb.portal.evaluatelog.EvaluateLogTestSuite FAILED
      

      *Unable to reproduce manually*

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kristin.jewell Kristin Jewell (Inactive)
                Reporter:
                kristin.jewell Kristin Jewell (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 15 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE