[prev in list] [next in list] [prev in thread] [next in thread]
List: httpclient-users
Subject: async http client DNS error
From: Joan_Balagueró <joan.balaguero () grupoventus ! com>
Date: 2017-05-25 8:00:12
Message-ID: 001101d2d52c$efb48c30$cf1da490$ () grupoventus ! com
[Download RAW message or body]
Hello,
We are having this error sporadically (once every week).
Additional information: java.net.UnknownHostException:
live.suppliers.gsisservices.com: System error
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native
Method)
at
java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsR
esolver.java:45)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalAd
dressResolver.resolveRemoteAddress(PoolingNHttpClientConnectionManager.java:
609)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalAd
dressResolver.resolveRemoteAddress(PoolingNHttpClientConnectionManager.java:
580)
at
org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractN
IOConnPool.java:427)
at
org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:
276)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestCon
nection(PoolingNHttpClientConnectionManager.java:266)
at
org.apache.http.impl.nio.client.AbstractClientExchangeHandler.requestConnect
ion(AbstractClientExchangeHandler.java:363)
at
org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(Defau
ltClientExchangeHandlerImpl.java:125)
at
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttp
AsyncClient.java:141)
at
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHt
tpAsyncClient.java:68)
at
com.ventusproxy.proxy.services.http.ServerHttpRequest.sendRequest(ServerHttp
Request.java:282)
At the hosts file of this server we have mapped this domain
(live.suppliers.gsisservices.com) to its ip address. Anyways sometimes this
resolution fails.
I see this line in the trace: at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsR
esolver.java:45)
Is it possible that the async http client is only using the dns by default
to resolve hosts names?
The code to send the request:
this.asyncHttp.execute(new BasicAsyncRequestProducer(new
HttpHost(uri.getHost(), uri.getPort(), uri.getScheme()), httpRequest), harc,
null);
Thanks,
Joan.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic