java.net.UnknownHostException: http: unknown error

Google Groups | zhining fang | 8 months ago
  1. 0

    "Cannot execute request on any known server" when i set up a Eureka cluster by skyDns

    GitHub | 8 months ago | bspline
    com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: http: unknown error
  2. 0

    GitHub comment 777#211375437

    GitHub | 8 months ago | fangzhining
    com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: http: unknown error
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    "Cannot execute request on any known server" when i set up a Eureka cluster by skyDns(2)

    GitHub | 8 months ago | fangzhining
    com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: http: unknown 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.UnknownHostException

    http: unknown error

    at java.net.Inet6AddressImpl.lookupAllHostAddr()
  2. Java RT
    InetAddress.getAllByName
    1. java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    2. java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
    3. java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
    4. java.net.InetAddress.getAllByName0(InetAddress.java:1276)
    5. java.net.InetAddress.getAllByName(InetAddress.java:1192)
    6. java.net.InetAddress.getAllByName(InetAddress.java:1126)
    6 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:259)
    3. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:159)
    4. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
    5. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
    6. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
    7. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
    8. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:115)
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    10 frames
  4. Jersey Apache HTTP Client 4.x
    ApacheHttpClient4Handler.handle
    1. com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)
    2. com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:187)
    2 frames
  5. jersey-client
    GZIPContentEncodingFilter.handle
    1. com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)
    1 frame
  6. eureka-client
    EurekaIdentityHeaderFilter.handle
    1. com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)
    1 frame
  7. jersey-client
    WebResource$Builder.get
    1. com.sun.jersey.api.client.Client.handle(Client.java:652)
    2. com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
    3. com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
    4. com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:509)
    4 frames
  8. com.netflix.discovery
    EurekaHttpClientDecorator.getApplications
    1. com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplicationsInternal(AbstractJerseyEurekaHttpClient.java:194)
    2. com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.getApplications(AbstractJerseyEurekaHttpClient.java:165)
    3. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)
    4. com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)
    5. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
    6. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)
    7. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)
    8. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)
    9. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
    10. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)
    11. com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:119)
    12. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
    13. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$6.execute(EurekaHttpClientDecorator.java:137)
    14. com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)
    15. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.getApplications(EurekaHttpClientDecorator.java:134)
    15 frames
  9. eureka-client
    DiscoveryClient.<init>
    1. com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:1013)
    2. com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:927)
    3. com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:441)
    4. com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:304)
    5. com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:300)
    5 frames
  10. com.netflix.eureka
    EurekaBootStrap.contextInitialized
    1. com.netflix.eureka.EurekaBootStrap.initEurekaServerContext(EurekaBootStrap.java:147)
    2. com.netflix.eureka.EurekaBootStrap.contextInitialized(EurekaBootStrap.java:96)
    2 frames
  11. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939)
    8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812)
    8 frames
  12. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames