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.

 

Reply via email to