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 Santosh Haranath <sa...@icsynergy.com> on 2004/12/01 06:07:27 UTC
java.net.SocketException: Connection reset - setStaleCheckingEnabled
Though I have not changed setStaleCheckingEnabled check (which I belive
is true by default) Still I am getting connection reset errors . Is
there anything I am missing ?
Thanks!
Nested Exception is java.net.SocketException: Connection reset
X at java.net.SocketInputStream.read(SocketInputStream.java:168)
X at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
X at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
X at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
X at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
X at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
X at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:76)
X at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:104)
X at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1067)
X at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1380)
X at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1836)
X at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1599)
X at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1010)
X at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:392)
X at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178)
X at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:437)
X at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
X at
com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.getRemoteContent(Unknown
Source)
X at
com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.<init>(Unknown
Source)
X at
com.americanexpress.tcc.dashboardPortal.portlets.framework.URLScraperPortlet.doView(Unknown
Source)
X at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
X at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
X at
com.americanexpress.tcc.dashboardPortal.portlets.BasePortlet.render(Unknown
Source)
X at
com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
X at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
X at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:757)
X at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
X at
org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
X at
org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
X at java.security.AccessController.doPrivileged(Native Method)
X at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
X at
com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
X at
com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
X at
com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
X at
com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
X at
com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
X at
com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
X
-----------------------------------------------------------------------------
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: java.net.SocketException: Connection reset - setStaleCheckingEnabled
Posted by Santosh Haranath <sa...@icsynergy.com>.
Thanks Oleg. We are using SUNOne Application server 7.0 as backend
webservers..
Oleg Kalnichevski wrote:
>Santosh,
>
>(1) Rather unfortunately many JSSE implementations do not always
>correctly implement socket read timeouts on secure sockets thus
>rendering the stale connection check unreliable
>
>(2) Stale connection check cannot be 100% reliable. An HTTP connection
>can be dropped by the server at any time without a prior warning. It can
>still happen that the connection turns stale immediately after the
>'stale' check.
>
>Hope this helps
>
>Oleg
>
>
>On Tue, Nov 30, 2004 at 11:07:27PM -0600, Santosh Haranath wrote:
>
>
>>Though I have not changed setStaleCheckingEnabled check (which I belive
>>is true by default) Still I am getting connection reset errors . Is
>>there anything I am missing ?
>>Thanks!
>>
>>
>>
>>
>>Nested Exception is java.net.SocketException: Connection reset
>>X at java.net.SocketInputStream.read(SocketInputStream.java:168)
>>X at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
>>X at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
>>X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
>>X at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
>>X at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
>>X at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
>>X at
>>org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:76)
>>X at
>>org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:104)
>>X at
>>org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1067)
>>X at
>>org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1380)
>>X at
>>org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1836)
>>X at
>>org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1599)
>>X at
>>org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1010)
>>X at
>>org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:392)
>>X at
>>org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178)
>>X at
>>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:437)
>>X at
>>org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
>>X at
>>com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.getRemoteContent(Unknown
>>Source)
>>X at
>>com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.<init>(Unknown
>>Source)
>>X at
>>com.americanexpress.tcc.dashboardPortal.portlets.framework.URLScraperPortlet.doView(Unknown
>>Source)
>>X at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
>>X at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
>>X at
>>com.americanexpress.tcc.dashboardPortal.portlets.BasePortlet.render(Unknown
>>Source)
>>X at
>>com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
>>X at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>X at
>>org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:757)
>>X at
>>org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
>>X at
>>org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
>>X at
>>org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
>>X at java.security.AccessController.doPrivileged(Native Method)
>>X at
>>org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
>>X at
>>com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
>>X at
>>com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
>>X at
>>com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
>>X at
>>com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
>>X at
>>com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
>>X at
>>com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
>>X
>>-----------------------------------------------------------------------------
>>
>>
>>
>>--
>>No virus found in this outgoing message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>>
>>
>>
>
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: java.net.SocketException: Connection reset - setStaleCheckingEnabled
Posted by Oleg Kalnichevski <ol...@apache.org>.
Santosh,
(1) Rather unfortunately many JSSE implementations do not always
correctly implement socket read timeouts on secure sockets thus
rendering the stale connection check unreliable
(2) Stale connection check cannot be 100% reliable. An HTTP connection
can be dropped by the server at any time without a prior warning. It can
still happen that the connection turns stale immediately after the
'stale' check.
Hope this helps
Oleg
On Tue, Nov 30, 2004 at 11:07:27PM -0600, Santosh Haranath wrote:
> Though I have not changed setStaleCheckingEnabled check (which I belive
> is true by default) Still I am getting connection reset errors . Is
> there anything I am missing ?
> Thanks!
>
>
>
>
> Nested Exception is java.net.SocketException: Connection reset
> X at java.net.SocketInputStream.read(SocketInputStream.java:168)
> X at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6275)
> X at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275)
> X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
> X at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
> X at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
> X at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> X at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
> X at
> org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:76)
> X at
> org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:104)
> X at
> org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1067)
> X at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1380)
> X at
> org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1836)
> X at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1599)
> X at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1010)
> X at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:392)
> X at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178)
> X at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:437)
> X at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
> X at
> com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.getRemoteContent(Unknown
> Source)
> X at
> com.americanexpress.tcc.dashboardPortal.util.HTTPFetcher.<init>(Unknown
> Source)
> X at
> com.americanexpress.tcc.dashboardPortal.portlets.framework.URLScraperPortlet.doView(Unknown
> Source)
> X at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
> X at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
> X at
> com.americanexpress.tcc.dashboardPortal.portlets.BasePortlet.render(Unknown
> Source)
> X at
> com.sun.portal.portletappengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
> X at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> X at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:757)
> X at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
> X at
> org.apache.catalina.core.ApplicationDispatcher.access$100(ApplicationDispatcher.java:123)
> X at
> org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:154)
> X at java.security.AccessController.doPrivileged(Native Method)
> X at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:528)
> X at
> com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContainer.java:409)
> X at
> com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContainer.java:180)
> X at
> com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider.java:386)
> X at
> com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvider.java:239)
> X at
> com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:204)
> X at
> com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
> X
> -----------------------------------------------------------------------------
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org