Tomcat日志中针对MySQL NoClassDefFoundError的恒定错误:com / mysql / cj / protocol / ExportControlled

问题描述

我有一个同时具有MysqL和Mongo DB的spring boot API。现在,在本地运行时,一切正常,...日志中没有错误

现在第二次将其部署到生产环境(Debian 10)中的Tomcat上,在日志中不断看到以下内容

现在只是要说,Spring-> MysqL插入和查询工作正常,没有问题。只是这个错误不断地填满日志...确实卡在了这个日志上!

感谢您抽出宝贵的时间!

Exception in thread "HikariPool-5 connection closer" java.lang.NoClassDefFoundError: com/MysqL/cj/protocol/ExportControlled
    at com.MysqL.cj.protocol.NetworkResources.forceClose(NetworkResources.java:53)
    at com.MysqL.cj.protocol.AbstractSocketConnection.forceClose(AbstractSocketConnection.java:103)
    at com.MysqL.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1227)
    at com.MysqL.cj.NativeSession.quit(NativeSession.java:174)
    at com.MysqL.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1733)
    at com.MysqL.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:721)
    at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:143)
    at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:451)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)
Exception in thread "HikariPool-5 connection closer" java.lang.NoClassDefFoundError: com/MysqL/cj/protocol/ExportControlled
    at com.MysqL.cj.protocol.NetworkResources.forceClose(NetworkResources.java:53)
    at com.MysqL.cj.protocol.AbstractSocketConnection.forceClose(AbstractSocketConnection.java:103)
    at com.MysqL.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1227)
    at com.MysqL.cj.NativeSession.quit(NativeSession.java:174)
    at com.MysqL.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1733)
    at com.MysqL.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:721)
    at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:143)
    at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:451)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:832)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)