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 livedoor.jp by Unknown author, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via Stack Overflow by Manoj Kumar R
, 2 years ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via Stack Overflow by mukund
, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via bonitasoft.com by Unknown author, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via Stack Overflow by Srihari
, 1 month ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
via grails4you.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:1997)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
at org.hibernate.loader.Loader.doQuery(Loader.java:674)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
at util.dao.NoticesDao.findAll(NoticesDao.java:103)

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.