0 Replies Latest reply on Aug 22, 2005 3:58 PM by 666705

    SSL Tunneling Failed to connect in Weblogic using HTTPCLient

    666705
      When i run a simple HTTP client to connect to a secure site via proxy using a console Application it works fine
      But with Weblogic 8.1 SP2 it throws Socket error
      Problem seems to happen In tunneling.

      Please let me know how to resolve this issue

      Following is the Log of HTTP when run through Weblogic

      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "CONNECT www.verisign.com:443 HTTP/1.1"
      2005/08/22 21:16:05:741 IST [DEBUG] HttpMethodBase - Adding Host request header
      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0-rc3[\r][\n]"
      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAHQAAAAAAAAAjAAAAA4ADgBAAAAADAAMAE4AAAAaABoAWgAAAAAAAACMAAAABlIAAEFELklORk9TWVMuQ09NUkFHSFVfREFTQVJJQ0hOU0hMMzEwMDIuQUQuSU5GT1NZUy5DT02CM4JMcQkupQReDburKUgEJozZS9DlU08=[\r][\n]"
      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "Host: www.verisign.com[\r][\n]"
      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "Proxy-Connection: Keep-Alive[\r][\n]"
      2005/08/22 21:16:05:741 IST [DEBUG] header - >> "[\r][\n]"
      2005/08/22 21:16:06:038 IST [DEBUG] header - << "HTTP/1.1 200 Connection established[\r][\n]"
      2005/08/22 21:16:06:038 IST [DEBUG] header - << "Via: 1.1 CHNULPXY, 1.1 CHNSHLISA05[\r][\n]"
      2005/08/22 21:16:06:038 IST [INFO] HttpMethodBase - Response content length is not known
      2005/08/22 21:16:06:038 IST [DEBUG] HttpMethodBase - Force-close connection: true
      2005/08/22 21:16:06:038 IST [DEBUG] ConnectMethod - CONNECT status code 200
      2005/08/22 21:16:06:038 IST [DEBUG] HttpConnection - Secure tunnel to www.verisign.com:443
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unk
      nown Source)) - Closing the connection.
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpConnection.close(Unknown Source)) -
      enter HttpConnection.close()
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpConnection.closeSocketAndStreams(Un
      known Source)) - enter HttpConnection.closeSockedAndStreams()
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unk
      nown Source)) - Method retry handler returned false. Automatic recovery will not
      be attempted
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpConnection.releaseConnection(Unknow
      n Source)) - enter HttpConnection.releaseConnection()
      DEBUG [22 Aug 2005 21:21:16,562 ExecuteThread: '14' for queue: 'weblogic.kernel.
      Default'] (org.apache.commons.httpclient.HttpConnection.releaseConnection(Unknow
      n Source)) - Releasing connection back to connection manager.
      java.net.SocketException: SSLSocketFactoryWrapper
      at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA12275)
      at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
      eSocket(Unknown Source)
      at org.apache.commons.httpclient.HttpConnection.tunnelCreated(Unknown So
      urce)
      at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(Unkno
      wn Source)
      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unk
      nown Source)
      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknow
      n Source)
      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source
      )
      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source