com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect

GitHub | sheiktajudeen | 2 months ago
  1. 0

    Not connecting to Eureka Server

    GitHub | 2 months ago | sheiktajudeen
    com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect
  2. 0

    Error when starting a microservice app with compose

    GitHub | 7 months ago | raphaelbrugier
    com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
  3. 0

    GitHub comment 3607#219904832

    GitHub | 7 months ago | deepu105
    com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Eureka clients in docker container

    Stack Overflow | 1 year ago | 1r3k
    com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
  6. 0

    ZUUL Proxy fails to run on WAS Liberty

    GitHub | 8 months ago | bsridhar123
    com.netflix.zuul.exception.ZuulException: Forwarding error
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.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)[na:1.8.0_91]
    2. java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)[na:1.8.0_91]
    3. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)[na:1.8.0_91]
    4. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)[na:1.8.0_91]
    5. java.net.AbstractPlainSocketImpl.connect(Unknown Source)[na:1.8.0_91]
    6. java.net.PlainSocketImpl.connect(Unknown Source)[na:1.8.0_91]
    7. java.net.SocksSocketImpl.connect(Unknown Source)[na:1.8.0_91]
    8. java.net.Socket.connect(Unknown Source)[na:1.8.0_91]
    8 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:120)[httpclient-4.5.2.jar:4.5.2]
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)[httpclient-4.5.2.jar:4.5.2]
    3. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)[httpclient-4.5.2.jar:4.5.2]
    4. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)[httpclient-4.5.2.jar:4.5.2]
    5. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)[httpclient-4.5.2.jar:4.5.2]
    6. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)[httpclient-4.5.2.jar:4.5.2]
    7. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)[httpclient-4.5.2.jar:4.5.2]
    8. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:117)[httpclient-4.5.2.jar:4.5.2]
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)[httpclient-4.5.2.jar:4.5.2]
    9 frames
  4. Jersey Apache HTTP Client 4.x
    ApacheHttpClient4Handler.handle
    1. com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)[jersey-apache-client4-1.19.1.jar:1.19.1]
    1 frame
  5. jersey-client
    GZIPContentEncodingFilter.handle
    1. com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)[jersey-client-1.19.1.jar:1.19.1]
    1 frame
  6. eureka-client
    EurekaIdentityHeaderFilter.handle
    1. com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)[eureka-client-1.4.10.jar:1.4.10]
    1 frame
  7. jersey-client
    WebResource$Builder.get
    1. com.sun.jersey.api.client.Client.handle(Client.java:652)[jersey-client-1.19.1.jar:1.19.1]
    2. com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)[jersey-client-1.19.1.jar:1.19.1]
    3. com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)[jersey-client-1.19.1.jar:1.19.1]
    4. com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509)[jersey-client-1.19.1.jar:1.19.1]
    4 frames
  8. com.netflix.discovery
    EurekaHttpClientDecorator.getApplications
    1. com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194)[eureka-client-1.4.10.jar:1.4.10]
    2. com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplications(AbstractJerseyEurekaHttpClient.java:165)[eureka-client-1.4.10.jar:1.4.10]
    3. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)[eureka-client-1.4.10.jar:1.4.10]
    4. com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)[eureka-client-1.4.10.jar:1.4.10]
    5. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)[eureka-client-1.4.10.jar:1.4.10]
    6. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)[eureka-client-1.4.10.jar:1.4.10]
    7. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)[eureka-client-1.4.10.jar:1.4.10]
    8. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)[eureka-client-1.4.10.jar:1.4.10]
    9. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)[eureka-client-1.4.10.jar:1.4.10]
    10. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)[eureka-client-1.4.10.jar:1.4.10]
    11. com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:119)[eureka-client-1.4.10.jar:1.4.10]
    12. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)[eureka-client-1.4.10.jar:1.4.10]
    13. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)[eureka-client-1.4.10.jar:1.4.10]
    14. com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)[eureka-client-1.4.10.jar:1.4.10]
    15. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)[eureka-client-1.4.10.jar:1.4.10]
    15 frames
  9. eureka-client
    DiscoveryClient.<init>
    1. com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1030)[eureka-client-1.4.10.jar:1.4.10]
    2. com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:944)[eureka-client-1.4.10.jar:1.4.10]
    3. com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:444)[eureka-client-1.4.10.jar:1.4.10]
    4. com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:304)[eureka-client-1.4.10.jar:1.4.10]
    4 frames
  10. org.springframework.cloud
    EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$a60e1e7d$$FastClassBySpringCGLIB$$670f868d.invoke
    1. org.springframework.cloud.netflix.eureka.CloudEurekaClient.<init>(CloudEurekaClient.java:51)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    2. org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:179)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    3. org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$a60e1e7d.CGLIB$eurekaClient$1(<generated>)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    4. org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$a60e1e7d$$FastClassBySpringCGLIB$$670f868d.invoke(<generated>)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    4 frames
  11. Spring Core
    MethodProxy.invokeSuper
    1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  12. Spring Context
    ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
    1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  13. org.springframework.cloud
    EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$a60e1e7d.eurekaClient
    1. org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$a60e1e7d.eurekaClient(<generated>)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    1 frame
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_91]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_91]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_91]
    4 frames
  15. Spring Beans
    AbstractBeanFactory$2.getObject
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:345)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    7 frames
  16. org.springframework.cloud
    GenericScope.get
    1. org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:359)[spring-cloud-context-1.1.2.BUILD-SNAPSHOT.jar:1.1.2.BUILD-SNAPSHOT]
    2. org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:176)[spring-cloud-context-1.1.2.BUILD-SNAPSHOT.jar:1.1.2.BUILD-SNAPSHOT]
    2 frames
  17. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:340)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2 frames
  18. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2 frames
  19. com.sun.proxy
    $Proxy89.getApplications
    1. com.sun.proxy.$Proxy89.getApplications(Unknown Source)[na:na]
    1 frame
  20. org.springframework.cloud
    EurekaDiscoveryClientConfiguration.start
    1. org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration.maybeInitializeClient(EurekaDiscoveryClientConfiguration.java:120)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    2. org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration.start(EurekaDiscoveryClientConfiguration.java:97)[spring-cloud-netflix-eureka-client-1.1.6.BUILD-SNAPSHOT.jar:1.1.6.BUILD-SNAPSHOT]
    2 frames
  21. Spring Context
    AbstractApplicationContext.finishRefresh
    1. org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:346)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:149)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    5. org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:112)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:874)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6 frames
  22. Spring Boot
    EmbeddedWebApplicationContext.finishRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    1 frame
  23. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    1 frame
  24. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:313)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    6 frames
  25. com.comcast.activation
    ZuulRetryerApplication.main
    1. com.comcast.activation.sparrow.ZuulRetryerApplication.main(ZuulRetryerApplication.java:29)[classes/:na]
    1 frame