You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kandula-dev@ws.apache.org by "Gauba, Naveen" <c_...@qualcomm.com> on 2010/03/11 00:34:25 UTC
Connection to Axis Web Service gets stale when the Web Service App
is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba
UnSubscribe
Posted by "Ramaswamy, Pudur" <pu...@paypal.com>.
From: Gauba, Naveen [mailto:c_ngauba@qualcomm.com]
Sent: Wednesday, March 10, 2010 3:34 PM
To: java-dev@axis.apache.org
Subject: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba
Re: Connection to Axis Web Service gets stale when the Web Service
App is bounced.
Posted by Amila Suriarachchi <am...@gmail.com>.
try setting these parameter at the axis2.xml file
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="SO_TIMEOUT">60000</parameter>
<parameter name="CONNECTION_TIMEOUT">60000</parameter>
</transportSender>
thanks,
Amila.
On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_...@qualcomm.com>wrote:
> Hi Guys
>
>
>
> My spring application is using an external Axis Web Service. I initialize
> the Service Stub during my application startup and keep a connection for
> that.
>
>
>
> When the external Axis Web Service was bounced I started getting “Read
> timed out” error when my app tried to talk to the web service.
>
>
>
> 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender
> sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-content-soap/MyService
> ]
> java.net.SocketTimeoutException: Read
> timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:155)
>
>
>
> How do I fix this issue? I understand that I can build a polling mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: Connection to Axis Web Service gets stale when the Web Service
App is bounced.
Posted by Amila Suriarachchi <am...@gmail.com>.
try setting these parameter at the axis2.xml file
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="SO_TIMEOUT">60000</parameter>
<parameter name="CONNECTION_TIMEOUT">60000</parameter>
</transportSender>
thanks,
Amila.
On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_...@qualcomm.com>wrote:
> Hi Guys
>
>
>
> My spring application is using an external Axis Web Service. I initialize
> the Service Stub during my application startup and keep a connection for
> that.
>
>
>
> When the external Axis Web Service was bounced I started getting “Read
> timed out” error when my app tried to talk to the web service.
>
>
>
> 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender
> sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-content-soap/MyService
> ]
> java.net.SocketTimeoutException: Read
> timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:155)
>
>
>
> How do I fix this issue? I understand that I can build a polling mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
UnSubscribe
Posted by "Ramaswamy, Pudur" <pu...@paypal.com>.
From: Gauba, Naveen [mailto:c_ngauba@qualcomm.com]
Sent: Wednesday, March 10, 2010 3:34 PM
To: java-dev@axis.apache.org
Subject: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba
Re: Connection to Axis Web Service gets stale when the Web Service
App is bounced.
Posted by Amila Suriarachchi <am...@gmail.com>.
try setting these parameter at the axis2.xml file
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="SO_TIMEOUT">60000</parameter>
<parameter name="CONNECTION_TIMEOUT">60000</parameter>
</transportSender>
thanks,
Amila.
On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_...@qualcomm.com>wrote:
> Hi Guys
>
>
>
> My spring application is using an external Axis Web Service. I initialize
> the Service Stub during my application startup and keep a connection for
> that.
>
>
>
> When the external Axis Web Service was bounced I started getting “Read
> timed out” error when my app tried to talk to the web service.
>
>
>
> 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender
> sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-content-soap/MyService
> ]
> java.net.SocketTimeoutException: Read
> timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:155)
>
>
>
> How do I fix this issue? I understand that I can build a polling mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: Connection to Axis Web Service gets stale when the Web Service
App is bounced.
Posted by Amila Suriarachchi <am...@gmail.com>.
try setting these parameter at the axis2.xml file
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="SO_TIMEOUT">60000</parameter>
<parameter name="CONNECTION_TIMEOUT">60000</parameter>
</transportSender>
thanks,
Amila.
On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_...@qualcomm.com>wrote:
> Hi Guys
>
>
>
> My spring application is using an external Axis Web Service. I initialize
> the Service Stub during my application startup and keep a connection for
> that.
>
>
>
> When the external Axis Web Service was bounced I started getting “Read
> timed out” error when my app tried to talk to the web service.
>
>
>
> 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender
> sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-content-soap/MyService
> ]
> java.net.SocketTimeoutException: Read
> timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:155)
>
>
>
> How do I fix this issue? I understand that I can build a polling mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
UnSubscribe
Posted by "Ramaswamy, Pudur" <pu...@paypal.com>.
From: Gauba, Naveen [mailto:c_ngauba@qualcomm.com]
Sent: Wednesday, March 10, 2010 3:34 PM
To: java-dev@axis.apache.org
Subject: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba
UnSubscribe
Posted by "Ramaswamy, Pudur" <pu...@paypal.com>.
From: Gauba, Naveen [mailto:c_ngauba@qualcomm.com]
Sent: Wednesday, March 10, 2010 3:34 PM
To: java-dev@axis.apache.org
Subject: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba
Re: Connection to Axis Web Service gets stale when the Web Service
App is bounced.
Posted by Amila Suriarachchi <am...@gmail.com>.
try setting these parameter at the axis2.xml file
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL">HTTP/1.1</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
<parameter name="SO_TIMEOUT">60000</parameter>
<parameter name="CONNECTION_TIMEOUT">60000</parameter>
</transportSender>
thanks,
Amila.
On Thu, Mar 11, 2010 at 5:04 AM, Gauba, Naveen <c_...@qualcomm.com>wrote:
> Hi Guys
>
>
>
> My spring application is using an external Axis Web Service. I initialize
> the Service Stub during my application startup and keep a connection for
> that.
>
>
>
> When the external Axis Web Service was bounced I started getting “Read
> timed out” error when my app tried to talk to the web service.
>
>
>
> 00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender
> sendViaPost Unable to sendViaPost to url[http://servername:9080/abcd-content-soap/MyService
> ]
> java.net.SocketTimeoutException: Read
> timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:155)
>
>
>
> How do I fix this issue? I understand that I can build a polling mechanism
> inside my app which can ping the service frequently and then re-initialize
> the service in case of ‘Read Time Out’ exceptions. Is there a different
> option? Could I configure something on the axis configurations that takes
> care of this issue?
>
>
>
> Regards
>
>
>
> Naveen Gauba
>
>
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
UnSubscribe
Posted by "Ramaswamy, Pudur" <pu...@paypal.com>.
From: Gauba, Naveen [mailto:c_ngauba@qualcomm.com]
Sent: Wednesday, March 10, 2010 3:34 PM
To: java-dev@axis.apache.org
Subject: Connection to Axis Web Service gets stale when the Web Service App is bounced.
Hi Guys
My spring application is using an external Axis Web Service. I initialize the Service Stub during my application startup and keep a connection for that.
When the external Axis Web Service was bounced I started getting "Read timed out" error when my app tried to talk to the web service.
00000027 HTTPSender I org.apache.axis2.transport.http.HTTPSender sendViaPost Unable to sendViaPost to url[ http://servername:9080/abcd-content-soap/MyService<%20http:/servername:9080/abcd-content-soap/MyService>]
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:155)
How do I fix this issue? I understand that I can build a polling mechanism inside my app which can ping the service frequently and then re-initialize the service in case of 'Read Time Out' exceptions. Is there a different option? Could I configure something on the axis configurations that takes care of this issue?
Regards
Naveen Gauba