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 web

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

Solution icon of github
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.

Solution icon of github
via GitHub by wilkohein
, 5 months ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

Solution icon of github
via GitHub by kodlust
, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

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

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

Solution icon of github
via GitHub by mrchasez
, 1 year ago
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

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

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

Solution icon of apache
via sqoop-user by Srinivas Surasani, 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: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.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
	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)

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

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
10 times, 3 months ago
Once, 4 months ago
19 more bugmates