Unable to establish connection with MySql server

java.io.EOFException
Javadoc
Signals that an end of file or end of stream has been reached unexpectedly during input.

This exception is mainly used by data input streams to signal end of stream. Note that many other input operations return a special value on end of stream rather than throwing an exception. @author Frank Yellin @see java.io.DataInputStream @see java.io.IOException @since JDK1.0

at com.mysql.jdbc.MysqlIO.readFully
(source)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket
(source)
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
Javadoc
An exception to represent communications errors with the database. Attempts to provide 'friendler' error messages to end-users, including last time a packet was sent to the database, what the client-timeout is set to, and whether the idle time has been exceeded.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(source)
at java.lang.reflect.Constructor.newInstance
(source)
at com.mysql.jdbc.Util.handleNewInstance
(source)
at com.mysql.jdbc.SQLError.createCommunicationsException
(source)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket
(source)
8 frames hidden

Typical Exception Messages

  1. Communications link failure The last packet successfully received from the server was 758,805 milliseconds ago. The last packet sent successfully to the server was 37 milliseconds ago.
  2. Communications link failure Last packet sent to the server was 12 ms ago.
  3. Communications link failure The last packet successfully received from the server was 439 501 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.
  4. Communications link failure The last packet successfully received from the server was 32,411,089 milliseconds ago. The last packet sent successfully to the server was 18 milliseconds ago.
  5. Communications link failure The last packet successfully received from the server was 10.001 milliseconds ago. The last packet sent successfully to the server was 10.001 milliseconds ago.
  6. The last packet successfully received from the server was 10 milliseconds ago. The last packet sent successfully to the server was 52,296 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
  7. Communications link failure The last packet successfully received from the server was 259,224,647 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
  8. Communications link failure The last packet successfully received from the server was 654,699 milliseconds ago. The last packet sent successfully to the server was 17 milliseconds ago.
  9. Communications link failure Last packet sent to the server was 3 ms ago.
  10. Communications link failure The last packet successfully received from the server was 27,697 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.

Origin

Constructor.newInstance() has thrown a CommunicationsException

java.io.EOFException
5 frames hidden
java.lang.reflect.Constructor.newInstance
91Web pages

Similar

Specific cases

External results for this pattern (91)

  1. guanxiaochenvia GitHub1 month ago
    Communications link failure The last packet successfully received from the server was 703,187 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
    Show stack trace
  2. chaithanyagantavia GitHub1 month ago
    Communications link failure The last packet successfully received from the server was 65 milliseconds ago. The last packet sent successfully to the server was 64 milliseconds ago.
    Show stack trace
  3. EncryptSLvia GitHub1 month ago
    Communications link failure The last packet successfully received from the server was 152,494 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Show stack trace
  4. morgan2233via GitHub2 months ago
    Communications link failure The last packet successfully received from the server was 202,752 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Show stack trace
  5. sanguinarvia GitHub3 months ago
    Communications link failure The last packet successfully received from the server was 1,008 milliseconds ago. The last packet sent successfully to the server was 7 milliseconds ago.
    Show stack trace
  6. saup007via GitHub3 months ago
    Communications link failure The last packet successfully received from the server was 30,012 milliseconds ago. The last packet sent successfully to the server was 29,012 milliseconds ago.
    Show stack trace
  7. kpeng2016via GitHub3 months ago
    Communications link failure The last packet successfully received from the server was 26,880 milliseconds ago. The last packet sent successfully to the server was 12 milliseconds ago.
    Show stack trace
  8. kubrick89via symmetricds3 months ago
    Communications link failure The last packet successfully received from the server was 3,525 milliseconds ago. The last packet sent successfully to the server was 2 milliseconds ago.
    Show stack trace
  9. Unknown authorvia nabble.com3 months ago
    Communications link failure The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Show stack trace
  10. Damian Jansenvia JIRA3 months ago
    Communications link failure The last packet successfully received from the server was 1,237,953 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.
    Show stack trace