commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Shrestha" <vin...@karna.com>
Subject [httpclient] Connection refused running tutorial sample
Date Fri, 25 Apr 2003 01:53:36 GMT
The following is the log output. What could be the problem?

2003/04/24 18:51:03:865 MST [TRACE] GetMethod - -enter GetMethod(String)
2003/04/24 18:51:03:875 MST [TRACE] HttpClient - -enter
HttpClient.executeMethod(HttpMethod)
2003/04/24 18:51:03:875 MST [TRACE] HttpClient - -enter
HttpClient.executeMethod(HostConfiguration,HttpMethod)
2003/04/24 18:51:03:905 MST [DEBUG]
HttpConnection - -HttpConnectionManager.getConnection: creating connection
for www.apache.org:80 via null:-1 using protocol: http:80
2003/04/24 18:51:03:905 MST [DEBUG]
HttpConnection - -HttpConnection.setSoTimeout(0)
2003/04/24 18:51:03:915 MST [TRACE] HttpConnection - -enter
HttpConnection.open()
2003/04/24 18:51:05:077 MST [TRACE] HttpConnection - -enter
HttpConnection.closeSockedAndStreams()
2003/04/24 18:51:05:077 MST [TRACE] HttpConnection - -enter
HttpConnection.releaseConnection()
Failed to download file.
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:95)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSo
cket(DefaultProtocolSocketFactory.java:105)
at
org.apache.commons.httpclient.HttpConnection$1.doit(HttpConnection.java:501)
at
org.apache.commons.httpclient.HttpConnection$SocketTask.run(HttpConnection.j
ava:1049)
at java.lang.Thread.run(Thread.java:479)


Mime
View raw message