您尚未登录,请登录后浏览更多内容! 登录 | 立即注册

QQ登录

只需一步,快速开始

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2160|回复: 1

一键端出现这个怎么解决

[复制链接]

1

回帖

1

主题

2

积分

新手上路

威望
0 点
冒险币
11 个
贡献值
0 点
好评度
0 点
发表于 2012-12-2 14:13:45 | 显示全部楼层 |阅读模式

X:\M\冒险岛\冒险岛online\Bugger>color B

X:\M\冒险岛\冒险岛online\Bugger>com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransien
tConnectionException: Could not create connection to database server. Attempted
reconnect 3 times. Giving up.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
        at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:
2226)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2127)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:289)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at database.DatabaseConnection.connectToDB(DatabaseConnection.java:111)
        at database.DatabaseConnection.getConnection(DatabaseConnection.java:45)

        at server.ServerProperties.<clinit>(ServerProperties.java:191)
        at server.Start.run(Start.java:55)
        at server.Start.main(Start.java:187)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communicatio
ns link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driv
er has not received any packets from the server.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1
118)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
        at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:
2168)
        ... 17 more
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:256)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
        ... 18 more
Exception in thread "main" java.lang.ExceptionInInitializerError
        at server.Start.run(Start.java:55)
        at server.Start.main(Start.java:187)
Caused by: java.lang.NullPointerException
        at server.ServerProperties.<clinit>(ServerProperties.java:191)
        ... 2 more
请按任意键继续. . .
经典冒险岛

4

回帖

0

主题

1

积分

新手上路

威望
0 点
冒险币
8 个
贡献值
0 点
好评度
0 点
发表于 2014-2-5 19:10:16 | 显示全部楼层
同求,一样的问题卡了我好多天了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

    申请友链|Archiver|手机版|

GMT+8, 2024-11-23 21:37 , Processed in 0.169913 second(s), 24 queries .

© 2001-2011 Powered by Discuz! X3.5. Theme By Yeei!

返回顶部