Error when entering a user to my server

Discussion in 'Server & Community Management' started by EliteMx, Apr 20, 2019.

  1. Hello Everyone
    I get an error every so often, when a user connects to my server, how can I solve it?

    Code (Text):
    19.04 20:15:14 [Server] WARN com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    19.04 20:15:14 [Server] INFO The last packet successfully received from the server was 134,788 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
    19.04 20:15:14 [Server] WARN at sun.reflect.GeneratedConstructorAccessor84.newInstance(Unknown Source)
    19.04 20:15:14 [Server] WARN at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    19.04 20:15:14 [Server] WARN at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3082)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2968)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3516)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    19.04 20:15:14 [Server] WARN at com.yapzhenyie.GadgetsMenu.mysql.query.SelectQuery.execute(SelectQuery.java:46)
    19.04 20:15:14 [Server] WARN at com.yapzhenyie.GadgetsMenu.mysql.SQLUtils.initStats(SQLUtils.java:47)
    19.04 20:15:14 [Server] WARN at com.yapzhenyie.GadgetsMenu.player.GPlayer.initPlayer(GPlayer.java:91)
    19.04 20:15:14 [Server] WARN at com.yapzhenyie.GadgetsMenu.listeners.PlayerListener.lambda$0(PlayerListener.java:35)
    19.04 20:15:14 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
    19.04 20:15:14 [Server] WARN at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    19.04 20:15:14 [Server] WARN at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    19.04 20:15:14 [Server] WARN at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    19.04 20:15:14 [Server] WARN at java.lang.Thread.run(Thread.java:748)
    19.04 20:15:14 [Server] WARN Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2529)
    19.04 20:15:14 [Server] WARN at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2979)
    19.04 21:29:26 [Server] INFO The connection to the MySQL was established.
    19.04 21:29:26 [Server] WARN com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    19.04 21:29:26 [Server] INFO The last packet successfully received from the server was 4,431,416 milliseconds ago.  The last packet sent successfully to the server was 0 milliseconds ago.
     
  2. Restart your server and see if it still occurs.
     
  3. Restart and everything is fine, no error in the console. But after a while, if a user comes in is when the error comes out.

    Code (Text):
    19.04 22:48:43 [Server] INFO [AuthMe] Enabling AuthMe v5.4.0-b1877
    19.04 22:48:43 [Server] INFO [AuthMe] Connection arguments loaded, Hikari ConnectionPool ready!
    19.04 22:48:43 [Server] WARN [Server thread] INFO fr.xephi.authme.libs.zaxxer.hikari.HikariDataSource - AuthMeMYSQLPool - Starting...
    19.04 22:48:43 [Server] WARN [Server thread] INFO fr.xephi.authme.libs.zaxxer.hikari.pool.PoolBase - AuthMeMYSQLPool - Driver does not support get/set network timeout for connections. (com.mysql.jdbc.JDBC4Connection.getNetworkTimeout()I)
    19.04 22:48:43 [Server] WARN [Server thread] INFO fr.xephi.authme.libs.zaxxer.hikari.HikariDataSource - AuthMeMYSQLPool - Start completed.
    19.04 22:48:45 [Server] INFO [AuthMe] MySQL setup finished
     
  4. Code (Text):
    Driver does not support get/set network timeout for connections.
     
  5. How can I fix that?
     
  6. Code (Text):
    at com.yapzhenyie.GadgetsMenu.mysql.query.SelectQuery.execute(SelectQuery.java:46)
    This is a plugin error, you should report it to the plugin developer(s).
     
  7. You probably have the SQL-Mode enabled for the AuthMe Plugin. Look through the config.
     
  8. Can't be
    Code (Text):
    The last packet successfully received from the server was 134,788 milliseconds ago.
    Also the stack trace was from a different class, not from AuthMe
     
  9. Try to check out your MySQL settings for that plugin. ;)
     

Share This Page