hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1121) httpclient 4.1.2: ssl connection can not be setup using sun jvm 64-Bit Server VM (build 1.5.0_10-b03, mixed mode) on linux
Date Thu, 01 Sep 2011 20:24:09 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1121.
-------------------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 4.1.2)

Works for me
---
This Program is used to check the connection to the TUI server
1. load a message from the msg file 
2. use httpclient to perform a web call. URL uses HTTPS  
loading file :stuff.txt
Msg to send:some stuff

credential is set to [principal: amadeus]
SSL Socket Factory is registered
preparing httpRequest with :https://localhost:443/
httpHost:https://localhost:443
executing web call
SIPHostnameVerifier0:localhost
SSL Socket Remote Socket Address: localhost/127.0.0.1:443
HTTP-Returncode[200]
Got-<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>

Response from partner server: 
<html><body><h1>It works!</h1>
<p>This is the default web page for this server.</p>
<p>The web server software is running but no content has been added, yet.</p>
</body></html>
---
---
Linux ubuntu 2.6.35-30-generic #56-Ubuntu SMP Mon Jul 11 20:00:22 UTC 2011 i686 GNU/Linux

java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Server VM (build 1.5.0_11-b03, mixed mode)
---

> httpclient 4.1.2: ssl connection can not be setup using sun jvm 64-Bit Server VM (build
1.5.0_10-b03, mixed mode) on linux 
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1121
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1121
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.1.2
>         Environment: GNU linux  2.6.5-7.286
>            Reporter: F. Chen
>              Labels: connection, problem, ssl
>         Attachments: TestDriver2.java, test.zip
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Hi,
> We are trying to replace httpclient 3.x with 4.1.2 and want to use some new features
in 4.1.2. 
> Our test program tries to use HTTPS to make a web call on a remote server. 
> Our test program runs fine under jdk 1.6. and it gets the following under JDK 1.5 which
it is our production environment.
> java.net.SocketException: Socket Closed
>         at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:201)
>         at java.net.Socket.setTcpNoDelay(Socket.java:838)
>         at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.setTcpNoDelay(BaseSSLSocketImpl.java:309)
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.prepareSocket(DefaultClientConnectionOperator.java:222)
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:153)
>         at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
>         at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
>         at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
>         at net.amadeus.sip.httplink.client.TestDriver2.sendMessage(TestDriver2.java:175)
>         at net.amadeus.sip.httplink.client.TestDriver2.main(TestDriver2.java:242)
> If needed, i can upload my test program.
> Can you please investigate why the httpclient 4.1.2 does not work under JDK 1.5.x?  
> Thanks for any idea and help.
> Fenghui

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message