已有101人关注
运行出错
发表在Java图书答疑 2022-05-31 悬赏:10 学分 《Java项目开发实战入门》第2章 通讯录系统
是否精华
版块置顶:

警告: Could not obtain connection metadata

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


The last packet successfully received from the server was 575 milliseconds ago.  The last packet sent successfully to the server was 538 milliseconds ago.

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.Util.handleNewInstance(Util.java:425)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4914)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2199)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2230)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2025)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:778)

at mysql.connector.java@5.1.47-bin/com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


分享到:
精彩评论 1
David
学分:914 LV7
TA的每日心情
最后的冲刺
2017-07-15 10:46:08
2022-06-07
沙发
看一下书中有没有光盘。如果是有,找一下源码中jar包;如果没有,向客服要一下这本书的源码。源码中的JDK版本、MySQL版本、Eclipse版本和连接MySQL的jar包是适配的。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照