[
https://issues.apache.org/jira/browse/HTTPCLIENT-1309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565982#comment-13565982
]
Ian Blavins commented on HTTPCLIENT-1309:
-----------------------------------------
G'day
Ah those days went by so fast !
Still occurs at 4.2.3.
SEVERE: java.net.UnknownHostException: 192.168.0.102:8080
at java.net.InetAddress.getAllByName0(InetAddress.java:1157)
at java.net.InetAddress.getAllByName(InetAddress.java:1083)
at java.net.InetAddress.getAllByName(InetAddress.java:1019)
at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
com.CLT.webinterface.proxy.HttpProxyFulfiller.getResponse(HttpProxyFulfiller.java:235)
at
com.CLT.webinterface.proxy.HttpProxyFulfiller.handle(HttpProxyFulfiller.java:129)
at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
at
com.CLT.webinterface.proxy.HttpProxyHandlerThread.run(HttpProxyHandlerThread.java:101)
> UnknownHostException if DefaultHttpClient asked to handle HttpRequest whose
> host name includes a port
> -----------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1309
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1309
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpConn
> Affects Versions: 4.2.3
> Environment: Mac OS X 10.6.8 HttpClient 4.2.1 - field above won't
> let me put in 4.2.1
> Reporter: Ian Blavins
> Priority: Minor
>
> If a DefaultHttpClient is passed, in its .execute(target, request, context)
> method call, an HttpRequest whose host name field contains a port suffix (eg
> 192.168.0.102:8080) then SystemDefaultDnsResolver will try to resolve the
> host name plus port and gets an UnknownHostException:
> java.net.UnknownHostException: 192.168.0.102:8080.
> There appears to be a work around and that is to download the source of
> SystemDefaultDnsResolver, make the obvious change to remove any port and then
> rebuild httpclient-4.2.1.jar. (There is probably an easier way to present the
> revised SystemDefaultDnsResolver since its intended to be replaced by the
> user developer but I haven't discovered it)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]