java.io.EOFException

Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

Solutions on the web1094

  • via Coderanch by Mike London, 7 months ago
    Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  • Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  • via GitHub by siemionides
    , 1 year ago
    Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  • Stack trace

    • java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3119)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3570)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3559)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4110)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)[mysql-connector-java-5.1.25.jar!/:na] at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2322)[mysql-connector-java-5.1.25.jar!/:na] at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:82)[hibernate-core-4.3.11.Final.jar!/:4.3.11.Final]

    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

    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 1 year ago
    2 times, 1 year ago
    10 times, 2 weeks ago
    Once, 1 month ago
    19 more bugmates