legacy-knowledge-base
公開されました Sep. 10, 2025

MySQL および JDK 11 での SSL 例外

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

learn-legacy-article-disclaimer-text

問題

  • MySQL と JDK11 で Liferay を起動した後、しばらく待った後、次のトレースが発生する場合があります。
    ** 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+

解決策

  • この問題は、古いバージョンの MySQL コネクタ (8.0.15 など) を使用している場合に報告されています。
  • コネクタの最新バージョン (執筆時点では、バージョン 8.0.22) を使用して、トレースが出力され続けるかどうかを確認します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base