You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Na...@emc.com on 2010/03/17 04:55:44 UTC

why httpclient 3.0.1 connects to default port 80

Given URL is http://localhost:9300. The results are same when actual
node name and/or IP address are used.

 

Here is the context log

 

2010-03-16 20:45:30,671 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.useragent = Jakarta Commons-HttpClient/3.0.1

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.protocol.version = HTTP/1.1

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.connection-manager.class = class
org.apache.commons.httpclient.SimpleHttpConnectionManager

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.protocol.cookie-policy = rfc2109

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.protocol.element-charset = US-ASCII

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.protocol.content-charset = ISO-8859-1

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.method.retry-handler =
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@7c163769

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.dateparser.patterns = [EEE, 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:ss 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]

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.connection-manager.max-per-host =
{HostConfiguration[]=10}

2010-03-16 20:45:30,686 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.connection-manager.max-total = 50

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Java
version: 1.6.0_18

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Java
vendor: Sun Microsystems Inc.

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Java class
path: C:\dss\jboss4.3.0\jdk\lib\tools.jar;C:\dss\jboss4.3.0\bin\run.jar

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Operating
system name: Windows 2003

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Operating
system architecture: amd64

2010-03-16 20:45:30,686 DEBUG HttpClient [http-0.0.0.0-9200-1]Operating
system version: 5.2

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SUN 1.6:
SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests;
SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator;
PKIX CertPathBuilder; LDAP, Collection CertStores, JavaPolicy Policy;
JavaLoginConfig Configuration)

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunRsaSign
1.5: Sun RSA signature provider

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunJSSE
1.6: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3,
TLSv1)

Given URL is 

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunJCE
1.6: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish,
ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunJGSS
1.0: Sun (Kerberos v5, SPNEGO)

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunSASL
1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5,
GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5,
GSSAPI, CRAM-MD5)

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]XMLDSig
1.0: XMLDSig (DOM XMLSignatureFactory; DOM KeyInfoFactory)

2010-03-16 20:45:30,749 DEBUG HttpClient [http-0.0.0.0-9200-1]SunPCSC
1.6: Sun PC/SC provider

2010-03-16 20:45:30,780 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.method.retry-handler =
com.emc.documentum.core.fulltext.client.communication.impl.http.HttpConn
ection$1@138532dc

2010-03-16 20:45:32,374 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]HttpConnectionManager.getConnection:  config =
HostConfiguration[host=http://localhost:9300], timeout = 0

2010-03-16 20:45:32,374 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]Allocating new connection,
hostConfig=HostConfiguration[host=http://localhost:9300]

2010-03-16 20:45:32,374 DEBUG HttpConnection [http-0.0.0.0-9200-1]Open
connection to localhost:9300

2010-03-16 20:45:32,390 DEBUG HttpMethodBase [http-0.0.0.0-9200-1]Adding
Host request header

2010-03-16 20:45:32,405 DEBUG EntityEnclosingMethod
[http-0.0.0.0-9200-1]Request body sent

2010-03-16 20:45:32,436 DEBUG HttpMethodBase
[http-0.0.0.0-9200-1]Resorting to protocol version default close
connection policy

2010-03-16 20:45:32,436 DEBUG HttpMethodBase [http-0.0.0.0-9200-1]Should
NOT close connection, using HTTP/1.1

2010-03-16 20:45:32,436 DEBUG HttpConnection
[http-0.0.0.0-9200-1]Releasing connection back to connection manager.

2010-03-16 20:45:32,436 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]Freeing connection,
hostConfig=HostConfiguration[host=http://localhost:9300]

2010-03-16 20:45:32,436 DEBUG IdleConnectionHandler
[http-0.0.0.0-9200-1]Adding connection at: 1268797532436

2010-03-16 20:45:32,436 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]Notifying no-one, there are no waiting threads

2010-03-16 20:45:32,436 DEBUG DefaultHttpParams [http-0.0.0.0-9200-1]Set
parameter http.method.retry-handler =
com.emc.documentum.core.fulltext.client.communication.impl.http.HttpConn
ection$1@138532dc

2010-03-16 20:45:32,436 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]HttpConnectionManager.getConnection:  config =
HostConfiguration[host=http://win2k3_64_ora], timeout = 0

2010-03-16 20:45:32,436 DEBUG MultiThreadedHttpConnectionManager
[http-0.0.0.0-9200-1]Allocating new connection,
hostConfig=HostConfiguration[host=http://win2k3_64_ora]

2010-03-16 20:45:32,436 DEBUG HttpConnection [http-0.0.0.0-9200-1]Open
connection to win2k3_64_ora:80

2010-03-16 20:45:33,358 DEBUG HttpMethodDirector
[http-0.0.0.0-9200-1]Closing the connection.

2010-03-16 20:45:33,358 INFO HttpMethodDirector [http-0.0.0.0-9200-1]I/O
exception (java.net.ConnectException) caught when processing request:
Connection refused: connect

2010-03-16 20:45:33,374 DEBUG HttpMethodDirector
[http-0.0.0.0-9200-1]Connection refused: connect

java.net.ConnectException: Connection refused: connect