Exciting 7 Posted April 23, 2019 Report Share Posted April 23, 2019 Hey everyone, I'm using a Dawntained source. It will run in debug mode but when I switch it to false this is what I get, Not sure what's going on. Thanks in advance.[4/19/19, 11:49 AM]: Server starting up...Exception in thread "main" com.zaxxer.hikari.pool.HikariPool$PoolInitializati onException: Failed to initialize pool: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.at com.zaxxer.hikari.pool.HikariPool.throwPoolInitial izationException(HikariPool.java:576)at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Hi kariPool.java:562)at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPoo l.java:115)at com.zaxxer.hikari.HikariDataSource.<init>(HikariDa taSource.java:81)at network.sql.SQLNetwork.createDataSource(SQLNetwork .java:60)at network.sql.SQLNetwork.<init>(SQLNetwork.java:48)at core.Server.loadSqlNetwork(Server.java:303)at core.Server.main(Server.java:209)Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62 )at java.base/jdk.internal.reflect.DelegatingConstructorAccessor Impl.newInstance(DelegatingConstructorAccessorImpl .java:45)at java.base/java.lang.reflect.Constructor.newInstanceWithCalle r(Constructor.java:500)at java.base/java.lang.reflect.Constructor.newInstance(Construc tor.java:481)at com.mysql.jdbc.Util.handleNewInstance(Util.java:42 5)at com.mysql.jdbc.SQLError.createCommunicationsExcept ion(SQLError.java:989)at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)at com.mysql.jdbc.ConnectionImpl.coreConnect(Connecti onImpl.java:2251)at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(Co nnectionImpl.java:2284)at com.mysql.jdbc.ConnectionImpl.createNewIO(Connecti onImpl.java:2083)at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImp l.java:806)at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connect ion.java:47)at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:62 )at java.base/jdk.internal.reflect.DelegatingConstructorAccessor Impl.newInstance(DelegatingConstructorAccessorImpl .java:45)at java.base/java.lang.reflect.Constructor.newInstanceWithCalle r(Constructor.java:500)at java.base/java.lang.reflect.Constructor.newInstance(Construc tor.java:481)at com.mysql.jdbc.Util.handleNewInstance(Util.java:42 5)at com.mysql.jdbc.ConnectionImpl.getInstance(Connecti onImpl.java:410)at com.mysql.jdbc.NonRegisteringDriver.connect(NonReg isteringDriver.java:328)at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getC onnection(MysqlDataSource.java:428)at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getC onnection(MysqlDataSource.java:136)at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getC onnection(MysqlDataSource.java:107)at com.zaxxer.hikari.pool.PoolBase.newConnection(Pool Base.java:369)at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolB ase.java:198)at com.zaxxer.hikari.pool.HikariPool.createPoolEntry( HikariPool.java:467)at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Hi kariPool.java:541)... 6 moreCaused by: java.net.ConnectException: Connection refused: connectat java.base/java.net.PlainSocketImpl.connect0(Native Method)at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocket Impl.java:101)at java.base/java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:399)at java.base/java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:242)at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:224)at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:403)at java.base/java.net.Socket.connect(Socket.java:591)at com.mysql.jdbc.StandardSocketFactory.connect(Stand ardSocketFactory.java:211)at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)... 26 more Link to comment Share on other sites More sharing options...
Guest bobby Posted July 31, 2019 Report Share Posted July 31, 2019 (edited) Since Dawntained uses databases it might be a good idea to set those up before doing anything at all. Got 2 simple solutions though. 1. you make the databases and make sure the config is set with the details in the designated classes. 2. remake the playersaving class to save as json's make it write in json format to a character list folder. Edited July 31, 2019 by bobby Link to comment Share on other sites More sharing options...
Valentino 2 Posted November 12, 2019 Report Share Posted November 12, 2019 On 7/31/2019 at 4:54 PM, Guest bobby said: Since Dawntained uses databases it might be a good idea to set those up before doing anything at all. Got 2 simple solutions though. 1. you make the databases and make sure the config is set with the details in the designated classes. 2. remake the playersaving class to save as json's make it write in json format to a character list folder. Would agree with him , just set up postgreSQL , Import the sql file and make sure your host is open for remote sql , just make sure to add your server ip in there and you should be good to go. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now