Jump to content
Existing user? Sign In

Sign In



Sign Up

Server only runs in debug mode?


Exciting

Recommended Posts

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 failure
The 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 failure

The 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 more
Caused by: java.net.ConnectException: Connection refused: connect
at 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

  • 3 months later...
Guest bobby

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 by bobby
Link to comment
Share on other sites

  • 3 months later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact

[email protected]

astra.security

What is a RSPS?

A RSPS, also known as RuneScape private server, is an online game based on RuneScape, and controlled by independent individuals.

Popular RSPS Servers

Runewild Ikov RedemptionRSPS

Disclaimer

Runesuite is not affiliated with runescape, jagex in any way & exists solely for educational purposes.

×
×
  • Create New...