DevLeoko / AdvancedBan

AdvancedBan is a Spigot plugin to manage punishments on single servers and server networks
GNU General Public License v3.0
164 stars 130 forks source link

MySQL erorr #502

Open TimtimWinslow opened 3 years ago

TimtimWinslow commented 3 years ago

What version of AdvancedBan (/AdvancedBan) are you using? 2.3.0

What kind of server do you have (Bungeecord/single server)? single

What server version (/version) are you using? 1.8.8

Please provide the EXACT steps required to reproduce the problem...

  1. plz help me fix this

Any error/log post it through pastebin.com and link it here. (Also include /plugins/AdvancedBan/logs/latest.log)

[13:49:35] Failed enabling database-manager... [13:49:35] me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: 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 me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:595) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:581) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:115) at me.leoko.advancedban.shaded.com.zaxxer.hikari.HikariDataSource.(HikariDataSource.java:81) at me.leoko.advancedban.utils.DynamicDataSource.generateDataSource(DynamicDataSource.java:37) at me.leoko.advancedban.manager.DatabaseManager.setup(DatabaseManager.java:51) at me.leoko.advancedban.Universal.setup(Universal.java:72) at me.leoko.advancedban.bukkit.BukkitMain.onEnable(BukkitMain.java:22) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: 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.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163) at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794) at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47) at jdk.internal.reflect.GeneratedConstructorAccessor96.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305) at me.leoko.advancedban.shaded.com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) at me.leoko.advancedban.shaded.com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ... 17 more Caused by: java.net.UnknownHostException: No such host is known (Unknown) at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929) at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515) at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1364) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1298) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:244) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292) ... 33 more

[13:49:35] An unexpected error has occurred connecting to the database Check if your MySQL data is correct and if your MySQL-Server is online Please check the plugins/AdvancedBan/logs/latest.log file and report this error in: https://github.com/DevLeoko/AdvancedBan/issues [13:49:35] java.lang.NullPointerException at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:111) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:107) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:92) at me.leoko.advancedban.manager.PunishmentManager.setup(PunishmentManager.java:41) at me.leoko.advancedban.Universal.setup(Universal.java:79) at me.leoko.advancedban.bukkit.BukkitMain.onEnable(BukkitMain.java:22) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) at java.base/java.lang.Thread.run(Thread.java:834)

[13:51:48] An unexpected error has occurred connecting to the database Check if your MySQL data is correct and if your MySQL-Server is online Please check the plugins/AdvancedBan/logs/latest.log file and report this error in: https://github.com/DevLeoko/AdvancedBan/issues [13:51:49] java.lang.NullPointerException at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:111) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:107) at me.leoko.advancedban.manager.DatabaseManager.executeResultStatement(DatabaseManager.java:103) at me.leoko.advancedban.manager.PunishmentManager.load(PunishmentManager.java:63) at me.leoko.advancedban.Universal.callConnection(Universal.java:304) at me.leoko.advancedban.bukkit.listener.ConnectionListener.onConnect(ConnectionListener.java:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) at net.minecraft.server.v1_8_R3.LoginListener$3.run(LoginListener.java:208)

[13:51:49] An unexpected error has occurred connecting to the database Check if your MySQL data is correct and if your MySQL-Server is online Please check the plugins/AdvancedBan/logs/latest.log file and report this error in: https://github.com/DevLeoko/AdvancedBan/issues [13:51:49] java.lang.NullPointerException at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:111) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:107) at me.leoko.advancedban.manager.DatabaseManager.executeResultStatement(DatabaseManager.java:103) at me.leoko.advancedban.manager.PunishmentManager.load(PunishmentManager.java:63) at me.leoko.advancedban.Universal.callConnection(Universal.java:304) at me.leoko.advancedban.bukkit.listener.ConnectionListener.onConnect(ConnectionListener.java:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) at net.minecraft.server.v1_8_R3.LoginListener$3.run(LoginListener.java:208)

[13:51:55] An unexpected error has occurred connecting to the database Check if your MySQL data is correct and if your MySQL-Server is online Please check the plugins/AdvancedBan/logs/latest.log file and report this error in: https://github.com/DevLeoko/AdvancedBan/issues [13:51:55] java.lang.NullPointerException at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:111) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:107) at me.leoko.advancedban.manager.DatabaseManager.executeResultStatement(DatabaseManager.java:103) at me.leoko.advancedban.manager.PunishmentManager.load(PunishmentManager.java:63) at me.leoko.advancedban.Universal.callConnection(Universal.java:304) at me.leoko.advancedban.bukkit.listener.ConnectionListener.onConnect(ConnectionListener.java:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) at net.minecraft.server.v1_8_R3.LoginListener$3.run(LoginListener.java:208)

[13:51:55] An unexpected error has occurred connecting to the database Check if your MySQL data is correct and if your MySQL-Server is online Please check the plugins/AdvancedBan/logs/latest.log file and report this error in: https://github.com/DevLeoko/AdvancedBan/issues [13:51:55] java.lang.NullPointerException at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:111) at me.leoko.advancedban.manager.DatabaseManager.executeStatement(DatabaseManager.java:107) at me.leoko.advancedban.manager.DatabaseManager.executeResultStatement(DatabaseManager.java:103) at me.leoko.advancedban.manager.PunishmentManager.load(PunishmentManager.java:63) at me.leoko.advancedban.Universal.callConnection(Universal.java:304) at me.leoko.advancedban.bukkit.listener.ConnectionListener.onConnect(ConnectionListener.java:23) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) at net.minecraft.server.v1_8_R3.LoginListener$LoginHandler.fireEvents(LoginListener.java:248) at net.minecraft.server.v1_8_R3.LoginListener$3.run(LoginListener.java:208)

Add any additional information below.