Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. 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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.1.2
    • Fix Version/s: None
    • Component/s: HttpClient (classic)
    • Environment:
      GNU linux 2.6.5-7.286

      Description

      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

        Attachments

        1. TestDriver2.java
          9 kB
          F. Chen
        2. test.zip
          4 kB
          F. Chen

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chenfh@gmx.de F. Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified