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

JDBC driver [com.mysql.cj.jdbc.Driver] failed to unregister

Details

    • 7.3.x
    • Committed
    • 4
    • Regression Bug

    Description

      Steps to Reproduce:

      1. Start Tomcat portal connected to MySQL with "./catalina.sh run"
      2. Shutdown with Ctrl + C

      Expected Results:
      No warning on shutdown

      Actual Result:
      Warning on shutdown

      29-Mar-2021 22:59:12.799 WARNING [Thread-12] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
      29-Mar-2021 22:59:12.800 WARNING [Thread-12] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread
      named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       java.lang.Object.wait(Native Method)
       java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
       com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       java.lang.Thread.run(Thread.java:748)

      Caused by LPS-129817

      Attachments

        Issue Links

          Activity

            People

              victor.ware Victor Ware
              victor.ware Victor Ware
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 35 weeks, 5 days ago

                Packages

                  Version Package
                  7.3.7 CE GA8
                  7.3.10 DXP FP2
                  7.3.X
                  7.4.0 CE GA1 DXP 7,4
                  7.4.1 CE GA2 DXP 7,4
                  7.4.2 CE GA3 DXP 7,4
                  7.4.13 DXP GA1
                  Master