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 Gebhard Gaukler <ge...@db.com> on 2005/05/09 11:06:20 UTC

HttpClient 3.0-rc2: problem reading ssl encrypted data via proxy (BUG 34740)

Hi Oleg,

Using MultiThreadedHttpConnectionManager in the constructor of HttpClient 
I have still a problem:
(http://issues.apache.org/bugzilla/show_bug.cgi?id=34740)

4.2_08\bin\javaw -classpath 
"C:\projekte\Experimente\Gaukler\TestHttpClient\classes;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-logging-1.0.4\commons-logging.jar;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-logging-1.0.4\commons-logging-api.jar;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-codec-1.3\commons-codec-1.3.jar;O:\DBR_SHARED_LIBRARY\3rdParty\httpClient\commons-httpclient-2.0-rc3\commons-httpclient.jar;C:\j2sdk1.4.2_08\demo\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_08\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_08\jre\javaws\javaws.jar;C:\j2sdk1.4.2_08\jre\lib\charsets.jar;C:\j2sdk1.4.2_08\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_08\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_08\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_08\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.2_08\jre\lib\im\indicim.jar;C:\j2sdk1.4.2_08\jre\lib\im\thaiim.jar;C:\j2sdk1.4.2_08\jre\lib\jce.jar;C:\j2sdk1.4.2_08\jre\lib\jsse.jar;C:\j2sdk1.4.2_08\jre\lib\plugin.jar;C:\j2sdk1.4.2_08\jre\lib\rt.jar;C:\j2sdk1.4.2_08\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_08\lib\dt.jar;C:\j2sdk1.4.2_08\lib\htmlconverter.jar;C:\j2sdk1.4.2_08\lib\tools.jar" 
 test.HttpClientTestBase 
[DEBUG] HttpClient - Java version: 1.4.2_08
[DEBUG] HttpClient - Java vendor: Sun Microsystems Inc.
[DEBUG] HttpClient - Java class path: 
C:\projekte\Experimente\Gaukler\TestHttpClient\classes;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-logging-1.0.4\commons-logging.jar;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-logging-1.0.4\commons-logging-api.jar;O:\DBR_SHARED_LIBRARY\3rdParty\commons\commons-codec-1.3\commons-codec-1.3.jar;O:\DBR_SHARED_LIBRARY\3rdParty\httpClient\commons-httpclient-2.0-rc3\commons-httpclient.jar;C:\j2sdk1.4.2_08\demo\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_08\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\j2sdk1.4.2_08\jre\javaws\javaws.jar;C:\j2sdk1.4.2_08\jre\lib\charsets.jar;C:\j2sdk1.4.2_08\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_08\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_08\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_08\jre\lib\ext\sunjce_provider.jar;C:\j2sdk1.4.2_08\jre\lib\im\indicim.jar;C:\j2sdk1.4.2_08\jre\lib\im\thaiim.jar;C:\j2sdk1.4.2_08\jre\lib\jce.jar;C:\j2sdk1.4.2_08\jre\lib\jsse.jar;C:\j2sdk1.4.2_08\jre\lib\plugin.jar;C:\j2sdk1.4.2_08\jre\lib\rt.jar;C:\j2sdk1.4.2_08\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_08\lib\dt.jar;C:\j2sdk1.4.2_08\lib\htmlconverter.jar;C:\j2sdk1.4.2_08\lib\tools.jar
[DEBUG] HttpClient - Operating system name: Windows XP
[DEBUG] HttpClient - Operating system architecture: x86
[DEBUG] HttpClient - Operating system version: 5.1
[DEBUG] HttpClient - SUN 1.42: SUN (DSA key/parameter generation; DSA 
signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS 
keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection 
CertStores)
[DEBUG] HttpClient - SunJSSE 1.42: Sun JSSE provider(implements RSA 
Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
[DEBUG] HttpClient - SunRsaSign 1.42: SUN's provider for RSA signatures
[DEBUG] HttpClient - SunJCE 1.42: SunJCE Provider (implements DES, Triple 
DES, AES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1)
[DEBUG] HttpClient - SunJGSS 1.0: Sun (Kerberos v5)
[DEBUG] DefaultHttpParams - Set parameter http.useragent = Jakarta 
Commons-HttpClient/3.0-rc2
[DEBUG] DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.1
[DEBUG] DefaultHttpParams - Set parameter http.connection-manager.class = 
class org.apache.commons.httpclient.SimpleHttpConnectionManager
[DEBUG] DefaultHttpParams - Set parameter http.protocol.cookie-policy = 
rfc2109
[DEBUG] DefaultHttpParams - Set parameter http.protocol.element-charset = 
US-ASCII
[DEBUG] DefaultHttpParams - Set parameter http.protocol.content-charset = 
ISO-8859-1
[DEBUG] DefaultHttpParams - Set parameter http.method.retry-handler = 
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@18020cc
[DEBUG] DefaultHttpParams - 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]
[TRACE] HttpState - enter HttpState.setCredentials(AuthScope, Credentials)
[TRACE] HttpState - enter HttpState.setProxyCredentials(AuthScope, 
Credentials)
[TRACE] GetMethod - enter GetMethod(String)
[TRACE] HttpClient - enter HttpClient.executeMethod(HttpMethod)
[TRACE] HttpClient - enter 
HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
[TRACE] MultiThreadedHttpConnectionManager - enter 
HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long)
[DEBUG] MultiThreadedHttpConnectionManager - 
HttpConnectionManager.getConnection:  config = 
HostConfiguration[host=https://stats.ecb.int, 
proxyHost=http://10.5.8.66:3128], timeout = 0
[TRACE] MultiThreadedHttpConnectionManager - enter 
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
[TRACE] MultiThreadedHttpConnectionManager - enter 
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
[DEBUG] MultiThreadedHttpConnectionManager - Allocating new connection, 
hostConfig=HostConfiguration[host=https://stats.ecb.int, 
proxyHost=http://10.5.8.66:3128]
HttpMethodDirector.executeMethod=================> SET LOCKED = TRUE
HttpConnection.setLocked =========================> IS LOCKED: true
[TRACE] HttpMethodDirector - Attempt number 1 to process request
[TRACE] HttpConnection - enter HttpConnection.open()
[DEBUG] HttpConnection - Open connection to 10.5.8.66:3128
HttpConnection.open=================> ISOPEN = TRUE
[TRACE] ConnectMethod - enter ConnectMethod()
[TRACE] HttpConnection - enter HttpConnection.open()
HttpMethodDirector.executeMethod==================================>(finally) 
LOCKED = FALSE
HttpConnection.setLocked =========================> IS LOCKED: false
[TRACE] HttpConnection - enter HttpConnection.releaseConnection()
[DEBUG] HttpConnection - Releasing connection back to connection manager.
[TRACE] MultiThreadedHttpConnectionManager - enter 
HttpConnectionManager.releaseConnection(HttpConnection)
[DEBUG] MultiThreadedHttpConnectionManager - Freeing connection, 
hostConfig=HostConfiguration[host=https://stats.ecb.int, 
proxyHost=http://10.5.8.66:3128]
[TRACE] MultiThreadedHttpConnectionManager - enter 
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
[DEBUG] IdleConnectionHandler - Adding connection at: 1115628293265
[DEBUG] MultiThreadedHttpConnectionManager - Notifying no-one, there are 
no waiting threads
java.lang.IllegalStateException: Connection is open
        at 
org.apache.commons.httpclient.HttpConnection.assertNotOpen(HttpConnection.java:1266)
        at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:692)
        at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1339)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:496)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:404)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:176)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
        at test.HttpClientTestBase.start(HttpClientTestBase.java:53)
        at test.HttpClientTestBase.main(HttpClientTestBase.java:23)
Exception in thread "main" 




 Kind regards
Gebhard 




Oleg Kalnichevski <ol...@apache.org> 
04.05.2005 16:10
Bitte antworten an
"HttpClient User Discussion" <ht...@jakarta.apache.org>


An
HttpClient User Discussion <ht...@jakarta.apache.org>
Kopie

Thema
Re: HttpClient 3.0-rc2: problem reading ssl encrypted data via proxy






Gebhard,

Please take a look at this bug report:

http://issues.apache.org/bugzilla/show_bug.cgi?id=34740

There's a fix attached to it

Oleg

On Wed, May 04, 2005 at 01:46:29PM +0200, Gebhard Gaukler wrote:
> Hi Oleg,
> 
> I only use a simple main method without any threads and only one process
> at the same time.
> For debugging purposes I used the source code. But removing all sources
> and using the original jar file
> I get the same output:
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org





--

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.