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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Zhao Yi
, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via GitHub by Canos
, 10 months ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via netbeans.org by Unknown author, 2 years ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via GitHub by graybeal
, 2 years ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via GitHub by mmisw
, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via vcffilms.com by Unknown author, 2 years ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
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)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3570)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3559)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4110)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2322)

Users with the same issue

10 times, 6 months ago
Once, 6 months ago
4 times, 7 months ago
2 times, 7 months ago
Once, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.