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 vi...@nomura.com on 2011/09/05 06:33:37 UTC

HTTPClient 4.1 SSL Socket Disconnects

Hello all,



We have a web application that uses apache http libraries 4.1. It connects to other apps over both HTTP and  HTTPS to retrieve content.



After running well for a few days, we sometimes see exceptions ( details below ) during content retrieval over *HTTPS*.   NOTE no issues seen when using HTTP.



The libraries we use are



httpclient-4.1.jar

httpclient-cache-4.1.jar

httpcore-4.1.jar

httpmime-4.1.jar



I have searched the mailing lists and haven’t found anything specific to the issue. The HTTPclient 4.1.x release notes do suggest a number of improvements and fixes for connections over SSL. So am wondering if these could have a bearing.



Does anyone know or could someone comment why this could be an issue over HTTPS ?

___________________________________________________

java.net.SocketException: Socket is not connected

        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getInputStream(SSLSocketImpl.java:1805)

        at org.apache.http.impl.io.SocketInputBuffer.<init>(SocketInputBuffer.java:106)

        at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java:101)

        at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java:179)

        at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java:157)

        at org.apache.http.impl.conn.DefaultClientConnection.update(DefaultClientConnection.java:239)

        at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:206)

        at org.apache.http.impl.conn.AbstractPoolEntry.layerProtocol(AbstractPoolEntry.java:277)

        at org.apache.http.impl.conn.AbstractPooledConnAdapter.layerProtocol(AbstractPooledConnAdapter.java:142)

        at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:759)

        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:566)

        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)

        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)

        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)





Regards

Vinay


This e-mail (including any attachments) is confidential, may contain
proprietary or privileged information and is intended for the named
recipient(s) only. Unintended recipients are prohibited from taking
action on the basis of information in this e-mail and must delete all
copies. Nomura will not accept responsibility or liability for the
accuracy or completeness of, or the presence of any virus or disabling
code in, this e-mail. If verification is sought please request a hard
copy. Any reference to the terms of executed transactions should be
treated as preliminary only and subject to formal written confirmation
by Nomura. Nomura reserves the right to monitor e-mail communications
through its networks (in accordance with applicable laws). No
confidentiality or privilege is waived or lost by Nomura by any
mistransmission of this e-mail. Any reference to "Nomura" is a
reference to any entity in the Nomura Holdings, Inc. group.
Please read our Electronic Communications Legal Notice which forms
part of this e-mail: http://www.Nomura.com/email_disclaimer.htm