hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh AMBASTA <saurabh.amba...@lexmarkpartners-europe.com>
Subject Socket closed for site
Date Tue, 04 Dec 2007 13:27:33 GMT
Hello, 

I have a website which opens with when pinged with IE or Firefox. However, 
when I try to send a request with the http client, I get a socket closed 
exception. 

I have tried to set the same headers as sent by Mozilla but still not able 
to solve this issue.

2007/12/04 14:12:38:171 CET [DEBUG] HttpClient - Java version: 1.3.1_20
2007/12/04 14:12:38:171 CET [DEBUG] HttpClient - Java vendor: Sun 
Microsystems Inc.
2007/12/04 14:12:38:181 CET [DEBUG] HttpClient - Java class path: 
TRT.jar;lib\xerces.jar;lib\commons
-logging-api-1.1.jar;lib\commons-codec-1.3.jar;lib\SiebelJI.jar;lib\SiebelJI_Common.jar;lib\SiebelJI
_enu.jar;lib\commons-httpclient-3.1-alpha1.jar;lib\dm_m12.jar;lib\javautils.jar;lib\jcert.jar;lib\jn
et.jar;lib\jsse.jar
2007/12/04 14:12:38:191 CET [DEBUG] HttpClient - Operating system name: 
Windows XP
2007/12/04 14:12:38:191 CET [DEBUG] HttpClient - Operating system 
architecture: x86
2007/12/04 14:12:38:191 CET [DEBUG] HttpClient - Operating system version: 
5.1
2007/12/04 14:12:38:191 CET [DEBUG] HttpClient - SUN 1.2: SUN (DSA 
key/parameter generation; DSA sig
ning; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore)
2007/12/04 14:12:38:201 CET [DEBUG] HttpClient - SunRsaSign 1.42: SUN's 
provider for RSA signatures
2007/12/04 14:12:38:211 CET [DEBUG] DefaultHttpParams - Set parameter 
http.useragent = Jakarta Commo
ns-HttpClient/3.1-alpha1
2007/12/04 14:12:38:211 CET [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.version = HTTP/1
.1
2007/12/04 14:12:38:221 CET [DEBUG] DefaultHttpParams - Set parameter 
http.connection-manager.class
= class org.apache.commons.httpclient.SimpleHttpConnectionManager
2007/12/04 14:12:38:231 CET [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.cookie-policy =
default
2007/12/04 14:12:38:251 CET [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.element-charset
= US-ASCII
2007/12/04 14:12:38:251 CET [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.content-charset
= ISO-8859-1
2007/12/04 14:12:38:261 CET [DEBUG] DefaultHttpParams - Set parameter 
http.method.retry-handler = or
g.apache.commons.httpclient.DefaultHttpMethodRetryHandler@329f3d
2007/12/04 14:12:38:271 CET [DEBUG] DefaultHttpParams - Set parameter 
http.dateparser.patterns = [EE
E, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d 
HH:mm:ss yyyy, EEE, dd-MMM-yyyy
 HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE 
dd-MMM-yyyy HH:mm:ss z, EEE
 dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy 
HH:mm:ss z, EEE dd MMM yy HH:mm:s
s z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy 
HH:mm:ss z]
2007/12/04 14:12:38:291 CET [DEBUG] DefaultHttpParams - Set parameter 
http.protocol.cookie-policy =
rfc2109
http://partenaires.lexmark.fr/
2007/12/04 14:12:38:331 CET [DEBUG] DefaultHttpParams - Set parameter 
http.socket.timeout = 5000
2007/12/04 14:12:38:341 CET [DEBUG] DefaultHttpParams - Set parameter 
http.useragent = Mozilla/5.0 (
Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 
Firefox/2.0.0.9
2007/12/04 14:12:38:341 CET [DEBUG] DefaultHttpParams - Set parameter 
http.connection = Keep-Alive
2007/12/04 14:12:38:361 CET [DEBUG] HttpConnection - Open connection to 
partenaires.lexmark.fr:80
2007/12/04 14:12:59:371 CET [DEBUG] HttpMethodDirector - Closing the 
connection.
2007/12/04 14:12:59:371 CET [INFO] HttpMethodDirector - I/O exception 
(java.net.ConnectException) ca
ught when processing request: Connection refused: connect
2007/12/04 14:12:59:371 CET [DEBUG] HttpMethodDirector - Connection 
refused: connect <java.net.Conne
ctException: Connection refused: connect>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:147)
        at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown
Source)
        at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown
Source)
        at org.apache.commons.httpclient.HttpConnection.open(Unknown 
Source)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown 
Source)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown 
Source)
        at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown 
Source)
        at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown 
Source)

Please let me know what I am doing wrong here.

thanks and regards,
Saurabh Ambasta

Phone : 33 - (0) 2 38 71 1508 
Email : saurabh.ambasta@lexmarkpartners-europe.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message