- Joined
- Nov 4, 2013
- Messages
- 34
- Reaction score
- 1
Can someone share this with me or help me get to a other v111 source ?
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!java.sql.SQLNonTransientConnectionException:
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:903)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:453)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:229)
at database.DatabaseConnection.getInternalConnection(DatabaseConnection.java:29)
at database.DatabaseConnection.getConnection(DatabaseConnection.java:21)
at server.ServerProperties.<clinit>(ServerProperties.java:29)
at server.Start.run(Start.java:37)
at server.Start.main(Start.java:203)Exception in thread "main" java.lang.ExceptionInInitializerError
at server.Start.run(Start.java:37)
at server.Start.main(Start.java:203)Caused by: java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null
at server.ServerProperties.<clinit>(ServerProperties.java:30)
... 2 more
I think the error is my version of mysql, I am using myquerybrowser which one do you recommend?
PHP:java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73) at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:903) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828) at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:453) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:229) at database.DatabaseConnection.getInternalConnection(DatabaseConnection.java:29) at database.DatabaseConnection.getConnection(DatabaseConnection.java:21) at server.ServerProperties.<clinit>(ServerProperties.java:29) at server.Start.run(Start.java:37) at server.Start.main(Start.java:203)Exception in thread "main" java.lang.ExceptionInInitializerError at server.Start.run(Start.java:37) at server.Start.main(Start.java:203)Caused by: java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "con" is null at server.ServerProperties.<clinit>(ServerProperties.java:30) ... 2 more
JustATinCan did you script the npc to open the shop ?
some npcs cant be changed but some npcs can be edited with unscriptable npc bs
// can make certain quest npcs scriptable
public static final List<Pair<Integer, String>> SCRIPTABLE_NPCS = new ArrayList<>(); static { SCRIPTABLE_NPCS.add(new Pair<>(0, ".")); SCRIPTABLE_NPCS.add(new Pair<>(0, ".")); SCRIPTABLE_NPCS.add(new Pair<>(0, ".")); }
Also, If anyone is familiar with v1.17/1.25 lmk been working on a localhost having trouble because I suck at hex editing/no idea whats going on with 1.17. 1.25 made post in help so go there.