Legacy Knowledge Base
Published Sep. 10, 2025

SSL Exception with MySQL and JDK 11

Written By

Ricardo Couso

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • After starting Liferay with MySQL and JDK11, and after waiting for some time, the following traces might occur:
    ** BEGIN NESTED EXCEPTION **
    
    javax.net.ssl.SSLException
    MESSAGE: closing inbound before receiving peer's close_notify
    
    STACKTRACE:
    
    javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
            at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
            at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
            at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:313)
            at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:269)
            at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:260)
            at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:737)
            at java.base/sun.security.ssl.SSLSocketImpl.shutdownInput(SSLSocketImpl.java:716)
            at com.mysql.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1319)
            at com.mysql.cj.NativeSession.quit(NativeSession.java:182)
            at com.mysql.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1750)
            at com.mysql.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:720)
            at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:139)
            at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:419)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.lang.Thread.run(Thread.java:834)
    
    
    ** END NESTED EXCEPTION **

Environment

  • Liferay DXP 7.2+

Resolution

  • This issue has been reported when using an older version of the MySQL connector (for example, 8.0.15). 
  • Use the latest version of the connector (at the time of writing, version 8.0.22) and check if the traces keep being printed.

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base