Jacarta HttpClient error

M

mark

Hello,

I have just written the app which is based on Jacarta HttpClient. Now
when executing it on one computer everything goes okay, but on the
another I get:

2006/11/28 09:40:59:563 GMT [DEBUG] DefaultHttpParams - Set parameter
http.connection.stalecheck = false
2006/11/28 09:40:59:563 GMT [DEBUG] DefaultHttpParams - Set parameter
http.protocol.expect-continue = false
2006/11/28 09:40:59:578 GMT [DEBUG] HttpConnection - Open connection to
<hereistheaddr>:80
2006/11/28 09:41:20:625 GMT [DEBUG] HttpMethodDirector - Closing the
connection.
2006/11/28 09:41:20:625 GMT [INFO] HttpMethodDirector - I/O exception
(java.net.ConnectException) caught when processing request: Connection
timed out: connect
2006/11/28 09:41:20:625 GMT [DEBUG] HttpMethodDirector - Connection
timed out: connect java.net.ConnectException: Connection timed out:
connect>java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at main.IO.getFile(IO.java:24)


Is it possible to get to know what reason (i.e. connected with
OS/network/other) stands behind that error?

Regards, mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top