RE: Timeout error during web service call

2008-02-13 Thread Raghu Upadhyayula
Raj,

Try setting
serviceClient.getOptions().setTimeOutInMilliSeconds(timeoutInMilliSecond
s);

Thanks
Raghu

-Original Message-
From: Raj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 13, 2008 1:24 PM
To: axis-user@ws.apache.org
Subject: Timeout error during web service call

Hello All,

The web service call errors out with timeout message.
We are using axis2. I am able to see the wsdl on the
browser using the
same url:
http://servername/webapp/services/ServiceName?wsdl


Here is the code section where it times out:

RPCServiceClient serviceClient = new
RPCServiceClient();
serviceClient.getOptions().setTo( new
EndpointReference( getServerAddress() ) );
QName saveFile = new QName( http://servername/;,
saveFile );
Object[] response = serviceClient.invokeBlocking(
saveFile, new Object[] {token}, new Class[]
{Integer.class} );

Any ideas?

Thanks in advance,
Raj

==
Here is the stack trace for the:

Timed out: 
http://servername/webapp/services/ServiceName?wsdl
org.apache.axis2.AxisFault: Read timed out
at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
95)
at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)
at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
at


Caused by: java.net.SocketTimeoutException: Read timed
out
at
java.net.SocketInputStream.socketRead0(Native Method)
at
java.net.SocketInputStream.read(SocketInputStream.java:129)
at
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at
java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.jav
a:1116)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBa
se.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase
.java:1735)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
97)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:520)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
91)
... 30 more


 


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Timeout error during web service call

2008-02-13 Thread Raj

Tried setting the timeout to 10 minutes without any
success.
(10*60*1000) 

Thanks,
Raj

--- Raghu Upadhyayula [EMAIL PROTECTED]
wrote:

 Raj,
 
   Try setting

serviceClient.getOptions().setTimeOutInMilliSeconds(timeoutInMilliSecond
 s);
 
 Thanks
 Raghu
 
 -Original Message-
 From: Raj [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 13, 2008 1:24 PM
 To: axis-user@ws.apache.org
 Subject: Timeout error during web service call
 
 Hello All,
 
 The web service call errors out with timeout
 message.
 We are using axis2. I am able to see the wsdl on the
 browser using the
 same url:
 http://servername/webapp/services/ServiceName?wsdl
 
 
 Here is the code section where it times out:
 
   RPCServiceClient serviceClient = new
 RPCServiceClient();
   serviceClient.getOptions().setTo( new
 EndpointReference( getServerAddress() ) );
   QName saveFile = new QName( http://servername/;,
 saveFile );
   Object[] response = serviceClient.invokeBlocking(
 saveFile, new Object[] {token}, new Class[]
 {Integer.class} );
 
 Any ideas?
 
 Thanks in advance,
 Raj
 
 ==
 Here is the stack trace for the:
 
 Timed out: 
 http://servername/webapp/services/ServiceName?wsdl
 org.apache.axis2.AxisFault: Read timed out
 at

org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
 95)
 at

org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
 ithCommons(CommonsHTTPTransportSender.java:327)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
 sHTTPTransportSender.java:206)
 at

org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
 ation.java:374)
 at

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
 xisOperation.java:211)
 at

org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
 )
 at
 
 
 Caused by: java.net.SocketTimeoutException: Read
 timed
 out
 at
 java.net.SocketInputStream.socketRead0(Native
 Method)
 at

java.net.SocketInputStream.read(SocketInputStream.java:129)
 at

java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at

java.io.BufferedInputStream.read(BufferedInputStream.java:235)
 at

org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
 at

org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
 at

org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.jav
 a:1116)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon

nectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
 at

org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBa
 se.java:1973)
 at

org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase
 .java:1735)
 at

org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
 :1098)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
 thodDirector.java:398)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
 dDirector.java:171)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
 97)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
 46)
 at

org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
 tHTTPSender.java:520)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
 91)
 ... 30 more
 
 
  


 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.

http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]