com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.[18:03:00] [Server thread/WARN]:

Samebug tips9

Check if your MongoDB is available.

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1351

  • via GitHub by Nomiis
    , 2 months ago
    Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.[18:03:00] [Server thread/WARN]:
  • Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • 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. Error Code: 0
  • Stack trace

    • com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.[18:03:00] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[18:03:00] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[18:03:00] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[18:03:00] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[18:03:00] at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)[18:03:00] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)[18:03:00] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)[18:03:00] at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2251)[18:03:00] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)[18:03:00] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)[18:03:00] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)[18:03:00] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)[18:03:00] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[18:03:00] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[18:03:00] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[18:03:00] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[18:03:00] at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)[18:03:00] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)[18:03:00] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)[18:03:00] at java.sql.DriverManager.getConnection(DriverManager.java:664)[18:03:00] at java.sql.DriverManager.getConnection(DriverManager.java:247)[18:03:00] at com.yapzhenyie.GadgetsMenu.mysql.MySQLConnection.openConnection(MySQLConnection.java:36)[18:03:00] at com.yapzhenyie.GadgetsMenu.GadgetsMenu.getConnection(GadgetsMenu.java:482)[18:03:00] at com.yapzhenyie.GadgetsMenu.GadgetsMenu.onEnable(GadgetsMenu.java:118)[18:03:00] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271)[18:03:00] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)[18:03:00] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)[18:03:00] at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer.java:376)[18:03:00] at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:326)[18:03:00] at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java:421)[18:03:00] at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java:382)[18:03:00] at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java:337)[18:03:00] at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:272)[18:03:00] at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:544)[18:03:00] at java.lang.Thread.run(Thread.java:745)[18:03:00] Caused by: java.net.ConnectException: Connection timed out (Connection timed out)[18:03:00] [Server thread/WARN]: at java.net.PlainSocketImpl.socketConnect(Native Method)[18:03:00] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[18:03:00] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[18:03:00] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[18:03:00] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[18:03:00] at java.net.Socket.connect(Socket.java:589)[18:03:00] at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)[18:03:00] at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)[18:03:00] ... 28 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 month ago
    Unknown user
    Once, 1 year ago
    17 times, 1 day ago
    Once, 3 days ago
    13 times, 1 week ago
    485 more bugmates