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.

baidu.com | 4 months ago
  1. 0

    hive metastore and connection refused errors for getting into hive shell

    Stack Overflow | 1 year ago | Mona Jalal
    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.
  2. 0

    Cannot log into web client on quickstart VM

    GitHub | 9 months ago | taylorterry3
    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.
  3. 0

    Sql connection error

    GitHub | 3 years ago | soulgriever
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MySQL PermissionsEx Connect

    GitHub | 3 years ago | MineMan910
    java.lang.RuntimeException: 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.
  6. 0

    Sql Backend Not Working

    GitHub | 3 years ago | Kebe2012
    java.lang.RuntimeException: 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.

  1. michallos 1 times, last 1 week ago
  2. linxiaolong 18 times, last 1 month ago
  3. linxiaolong 5 times, last 4 months ago
  4. treefolk 2 times, last 5 days ago
  5. Kialandei 1 times, last 1 month ago
24 more registered users
65 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    7. java.net.Socket.connect(Socket.java:528)
    8. java.net.Socket.<init>(Socket.java:425)
    9. java.net.Socket.<init>(Socket.java:241)
    9 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
    3 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:571)
    2. java.sql.DriverManager.getConnection(DriverManager.java:187)
    2 frames
  7. BoneCP :: Core Library
    BoneCPDataSource.getConnection
    1. com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:361)
    2. com.jolbox.bonecp.BoneCP.<init>(BoneCP.java:416)
    3. com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:120)
    3 frames
  8. DataNucleus RDBMS plugin
    RDBMSStoreManager.<init>
    1. org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:501)
    2. org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:298)
    2 frames
  9. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  10. DataNucleus Core
    NucleusContext.initialise
    1. org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:631)
    2. org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
    3. org.datanucleus.NucleusContext.createStoreManagerForProperties(NucleusContext.java:1187)
    4. org.datanucleus.NucleusContext.initialise(NucleusContext.java:356)
    4 frames
  11. DataNucleus JDO API plugin
    JDOPersistenceManagerFactory.getPersistenceManagerFactory
    1. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:775)
    2. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:333)
    3. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:202)
    3 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  13. JDO API
    JDOHelper$16.run
    1. javax.jdo.JDOHelper$16.run(JDOHelper.java:1965)
    1 frame
  14. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  15. JDO API
    JDOHelper.getPersistenceManagerFactory
    1. javax.jdo.JDOHelper.invoke(JDOHelper.java:1960)
    2. javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1166)
    3. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:808)
    4. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:701)
    4 frames
  16. Hive Metastore
    ObjectStore.setConf
    1. org.apache.hadoop.hive.metastore.ObjectStore.getPMF(ObjectStore.java:365)
    2. org.apache.hadoop.hive.metastore.ObjectStore.getPersistenceManager(ObjectStore.java:394)
    3. org.apache.hadoop.hive.metastore.ObjectStore.initialize(ObjectStore.java:291)
    4. org.apache.hadoop.hive.metastore.ObjectStore.setConf(ObjectStore.java:258)
    4 frames
  17. Hadoop
    ReflectionUtils.newInstance
    1. org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)
    2. org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
    2 frames
  18. Hive Metastore
    HiveMetaStoreClient.<init>
    1. org.apache.hadoop.hive.metastore.RawStoreProxy.<init>(RawStoreProxy.java:56)
    2. org.apache.hadoop.hive.metastore.RawStoreProxy.getProxy(RawStoreProxy.java:65)
    3. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.newRawStore(HiveMetaStore.java:579)
    4. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(HiveMetaStore.java:557)
    5. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(HiveMetaStore.java:610)
    6. org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:448)
    7. org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:66)
    8. org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:72)
    9. org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5601)
    10. org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:193)
    10 frames
  19. Hive Query Language
    SessionHiveMetaStoreClient.<init>
    1. org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:74)
    1 frame
  20. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    4 frames
  21. Hive Metastore
    RetryingMetaStoreClient.getProxy
    1. org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1486)
    2. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:64)
    3. org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:74)
    3 frames
  22. Hive Query Language
    SessionState.start
    1. org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:2841)
    2. org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:2860)
    3. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:453)
    3 frames
  23. org.apache.hadoop
    CliDriver.main
    1. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
    2. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
    2 frames
  24. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  25. Hadoop
    RunJar.main
    1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
    2 frames