java.net.SocketException: java.net.ConnectException: Connection timed out: no further information

Oracle Community | 807581 | 1 decade ago
  1. 0

    glassfish application server 9 with mysql

    Oracle Community | 1 decade ago | 807581
    java.net.SocketException: java.net.ConnectException: Connection timed out: no further information
  2. 0
    Probably there is a bug in TestNG Eclipse plugin (6.8.6.20130607_0745), try an other version (e.g. 6.8.0.20121120_1820)
  3. 0
    before running my test in debug mode, i open the debug view, and remove some breakpoints (such as some remaining on NullPointersExceptions, and Sockets)
    via GitHub by ppoulard
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Here is a animation for the life cycle. http://tcp.cs.st-andrews.ac.uk/index.shtml?page=connection_lifecycle
  6. 0

    java.net.socketexception connection timed out - TechPaste

    techpaste.com | 5 months ago
    java.net.SocketException: java.net.ConnectException: Connection timed out

    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

      java.net.ConnectException: Connection timed out: no further information

      at com.mysql.jdbc.StandardSocketFactory.connect()
    2. MySQL jdbc
      MysqlDataSource.getConnection
      1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
      2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
      3. com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
      4. com.mysql.jdbc.Connection.<init>(Connection.java:1485)
      5. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
      6. com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:425)
      7. com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:140)
      8. com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:110)
      8 frames
    3. Embedded GlassFish Web
      DSManagedConnectionFactory.createManagedConnection
      1. com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:100)
      1 frame
    4. Connectors Runtime
      ConnectorRuntime.testConnectionPool
      1. com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:1200)
      2. com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.testConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:543)
      3. com.sun.enterprise.connectors.ConnectorRuntime.testConnectionPool(ConnectorRuntime.java:502)
      3 frames
    5. com.sun.enterprise
      ResourcesMBean.pingConnectionPool
      1. com.sun.enterprise.admin.mbeans.ResourcesMBean.pingConnectionPool(ResourcesMBean.java:2218)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. GlassFish Admin
      MBeanHelper.invokeOperationInBean
      1. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
      2. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
      2 frames
    8. com.sun.enterprise
      BaseConfigMBean.invoke
      1. com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
      1 frame
    9. Java RT
      Method.invoke
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      5. sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      6. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      7. java.lang.reflect.Method.invoke(Method.java:585)
      7 frames
    10. admin-util
      ProxyClass.invoke
      1. com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
      1 frame
    11. Unknown
      $Proxy1.invoke
      1. $Proxy1.invoke(Unknown Source)
      1 frame
    12. com.sun.enterprise
      CommonHandlers.invokeMBean
      1. com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
      2. com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:162)
      3. com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:60)
      4. com.sun.enterprise.tools.admingui.handlers.CommonHandlers.invokeMBean(CommonHandlers.java:149)
      4 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    14. com.sun.enterprise
      DescriptorViewBeanBase.execute
      1. com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:938)
      2. com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:875)
      3. com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:841)
      4. com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.execute(DescriptorViewHelper.java:313)
      5. com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.execute(DescriptorViewBeanBase.java:210)
      5 frames
    15. com.iplanet.jato
      ApplicationServletBase.processRequest
      1. com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
      2. com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
      3. com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
      4. com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:760)
      5. com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
      6. com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
      7. com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
      7 frames
    16. com.sun.enterprise
      BaseServlet.processRequest
      1. com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.java:204)
      1 frame
    17. com.iplanet.jato
      ApplicationServletBase.doPost
      1. com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:473)
      1 frame
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    19. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
      5. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
      6. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      7 frames
    20. Glassfish
      WebPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
      1 frame
    21. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      2 frames
    22. Glassfish
      VirtualServerPipeline.invoke
      1. com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
      1 frame
    23. Glassfish Core
      StandardEngineValve.invoke
      1. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
      2. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
      2 frames