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

severalnines.com | 2 weeks ago
  1. 0

    Hibernate Cannot open a connection. – Severalnines Support

    severalnines.com | 4 months ago
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  2. 0

    Hibernate Cannot open a connection. – Severalnines Support

    severalnines.com | 2 weeks ago
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  3. 0

    Mysql connection error cannot connect to database

    Stack Overflow | 4 years ago | Manoj Kumar R
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate first login failed

    Stack Overflow | 2 years ago | Yair Cohen
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
  6. 0

    JPA - Connection to database timing out after a few minutes

    Stack Overflow | 3 years ago | karoma
    java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.

  1. mortalman7 1 times, last 5 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. MySQL jdbc
    PreparedStatement.executeQuery
    1. com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1997)
    2. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)
    3. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)
    4. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
    5. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
    6. com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
    7. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
    8. com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1467)
    8 frames
  3. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  4. MySQL jdbc
    LoadBalancingConnectionProxy$ConnectionErrorFiringInvocationHandler.invoke
    1. com.mysql.jdbc.LoadBalancingConnectionProxy$ConnectionErrorFiringInvocationHandler.invoke(LoadBalancingConnectionProxy.java:168)
    1 frame
  5. com.sun.proxy
    $Proxy6.executeQuery
    1. com.sun.proxy.$Proxy6.executeQuery(Unknown Source)
    1 frame
  6. Hibernate
    QueryLoader.list
    1. org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
    2. org.hibernate.loader.Loader.getResultSet(Loader.java:1778)
    3. org.hibernate.loader.Loader.doQuery(Loader.java:662)
    4. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
    5. org.hibernate.loader.Loader.doList(Loader.java:2211)
    6. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
    7. org.hibernate.loader.Loader.list(Loader.java:2090)
    8. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
    8 frames
  7. Hibernate HQL/JP-QL Parser
    QueryTranslatorImpl.list
    1. org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
    1 frame
  8. Hibernate
    AbstractQueryImpl.uniqueResult
    1. org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
    2. org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
    3. org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    4. org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:804)
    4 frames
  9. com.gambling.iform
    Login.execute
    1. com.gambling.iform.admin.Login.execute(Login.java:62)
    1 frame
  10. org.apache.jsp
    login2_jsp._jspService
    1. org.apache.jsp.commons.login2_jsp._jspService(login2_jsp.java:106)
    1 frame
  11. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  13. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    3 frames
  14. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  16. net.sf.packtag
    GzipFilter.doFilter
    1. net.sf.packtag.filter.GzipFilter.doFilter(GzipFilter.java:43)
    1 frame
  17. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    9 frames
  18. org.apache.coyote
    AjpProcessor.process
    1. org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
    1 frame
  19. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    2. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    2 frames
  20. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:724)
    3 frames