java.net.SocketException: Connection timed out

Coderanch | Heinz Uller | 3 years ago
  1. 0

    MySQL Bugs: #68141: querytimeout does not work for loadbalanced and failover connections

    mysql.com | 9 months ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 5,102 milliseconds ago. The last packet sent successfully to the server was 5,006 milliseconds ago.
  2. 0

    MySQL Bugs: #68141: querytimeout does not work for loadbalanced and failover connections

    mysql.com | 1 year ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 5,102 milliseconds ago. The last packet sent successfully to the server was 5,006 milliseconds ago.
  3. 0

    Proxy error while accessing the application

    Stack Overflow | 5 years ago | yogsma
    java.net.SocketException: Connection timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to create a mysql persistent connection from a java application?

    Stack Overflow | 6 years ago | sap
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 368,140 milliseconds ago. The last packet sent successfully to the server was 366,869 milliseconds ago.
  6. 0

    java.net.SocketException: Connection reset

    Oracle Community | 10 years ago | 666705
    java.net.SocketException: Connection reset
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.net.SocketException

    Connection timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:146)
    2 frames
  3. MySQL jdbc
    PreparedStatement.executeQuery
    1. com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
    2. com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
    3. com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
    4. com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1994)
    5. com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2411)
    6. com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2916)
    7. com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
    8. com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
    9. com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
    10. com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
    11. com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1467)
    11 frames
  4. Embedded GlassFish Web
    PreparedStatementWrapper40.executeQuery
    1. com.sun.gjc.spi.jdbc40.PreparedStatementWrapper40.executeQuery(PreparedStatementWrapper40.java:642)
    1 frame
  5. EclipseLink (non-OSGi)
    EJBQueryImpl.getResultList
    1. org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:931)
    2. org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:607)
    3. org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:535)
    4. org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1717)
    5. org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:566)
    6. org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
    7. org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
    8. org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:264)
    9. org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:646)
    10. org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2611)
    11. org.eclipse.persistence.internal.queries.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2570)
    12. org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:420)
    13. org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1081)
    14. org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:844)
    15. org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1040)
    16. org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:392)
    17. org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1128)
    18. org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2871)
    19. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1516)
    20. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1498)
    21. org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1463)
    22. org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:485)
    23. org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:742)
    23 frames
  6. logic
    AuxEJB.getNationCodeTranslation
    1. logic.AuxEJB.getNationCodeTranslation(AuxEJB.java:89)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor286.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:616)
    3 frames
  8. Embedded GlassFish Web
    SystemInterceptorProxy.aroundInvoke
    1. org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
    2. org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
    3. com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5388)
    4. com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
    5. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
    6. com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
    7. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
    8. com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
    8 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:616)
    3 frames
  10. Embedded GlassFish Web
    EJBLocalObjectInvocationHandlerDelegate.invoke
    1. com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
    2. com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
    3. com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
    4. com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5360)
    5. com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5348)
    6. com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
    7. com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
    7 frames
  11. Unknown
    $Proxy215.getNationCodeTranslation
    1. $Proxy215.getNationCodeTranslation(Unknown Source)
    1 frame
  12. logic
    TEDTenderCrawler.visit
    1. logic.__EJB31_Generated__AuxEJB__Intf____Bean__.getNationCodeTranslation(Unknown Source)
    2. logic.TEDTenderCrawler.visit(TEDTenderCrawler.java:168)
    2 frames
  13. crawler4j
    WebCrawler.run
    1. edu.uci.ics.crawler4j.crawler.WebCrawler.processPage(WebCrawler.java:306)
    2. edu.uci.ics.crawler4j.crawler.WebCrawler.run(WebCrawler.java:189)
    2 frames
  14. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:679)
    1 frame