axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas Bitting <Douglas.Bitt...@agile.com>
Subject RE: "read time out" problem
Date Mon, 28 Jul 2003 16:35:29 GMT
Increase your timeout, which defaults to 1 minute:
 
call.setTimeout(...); // specified in ms, -1 == no timeout
 
Cheers,
--Doug

-----Original Message-----
From: Bobak, Greg P. [mailto:GregBobak@ColeNational.com]
Sent: Monday, July 28, 2003 6:08 AM
To: 'axis-user@ws.apache.org'
Subject: RE: "read time out" problem



I've had this happen when sending very large messages, but never with small messages.  I have
received no help from the group on this yet either.  If
I come up with something, I'll share it with you.


Greg Bobak      
Senior Programmer Analyst 
Cole National 
http://www.thingsremembered.com <http://www.thingsremembered.com>  
-----Original Message----- 
From: doug [ mailto:doug@gate.sinica.edu.tw <mailto:doug@gate.sinica.edu.tw> ] 
Sent: Tuesday, July 22, 2003 3:03 AM 
To: axis-user@ws.apache.org 
Subject: "read time out" problem 

I have a service deployed on AXIS. 
It's OK to invoke it using simple client as follow: 

                ..... 
                call.setTargetEndpointAddress( urls ); 
                call.setOperationName( new QName("getList") ); 
                call.addParameter( "metadataStandard", 
XMLType.XSD_STRING, ParameterMode.IN ); 
                call.addParameter( "condition", XMLType.XSD_STRING, 
ParameterMode.IN );        
                call.setEncodingStyle( 
" http://schemas.xmlsoap.org/soap/encoding/ <http://schemas.xmlsoap.org/soap/encoding/>
" );          
                call.setReturnType( XMLType.XSD_STRING ); 
                call.setUsername( user ); 
                call.setPassword( passwd ); 
                 Object ret = call.invoke( new Object[] { "EAD", all  } )  ; 
                 System.out.println(ret); 
                .... 


But it doesn't work in my servlet client. 
   
    ...... 
  public void doGet(HttpServletRequest req, HttpServletResponse res) 
        throws ServletException, IOException{ 
                ..... 
                ...... 
                call.setTargetEndpointAddress( urls ); 
                call.setOperationName( new QName("getList") ); 
                call.addParameter( "metadataStandard", 
XMLType.XSD_STRING, ParameterMode.IN ); 
                call.addParameter( "condition", XMLType.XSD_STRING, 
ParameterMode.IN );        
                call.setEncodingStyle( 
" http://schemas.xmlsoap.org/soap/encoding/ <http://schemas.xmlsoap.org/soap/encoding/>
" );          
                call.setReturnType( XMLType.XSD_STRING ); 
                call.setUsername( user ); 
                call.setPassword( passwd ); 
                 Object ret = call.invoke( new Object[] { "EAD", all  } )  ; 
                 out.println(ret); 
                .... 
            } 
        ...... 

    Container will throw a "Read timed out" Exception. 
   
    Could anyone give me some advise? Thanks very much~~... 
------------------------------------------------------------------------ 

*type* Exception report 

*message* 

*description*_The server encountered an internal error () that prevented 
it from fulfilling this request._ 

*exception* 

AxisFault 
 faultCode: { http://schemas.xmlsoap.org/soap/envelope/ <http://schemas.xmlsoap.org/soap/envelope/>
}Server.userException 
 faultSubcode: 
 faultString: java.net.SocketTimeoutException: Read timed out 
 faultActor: 
 faultNode: 
 faultDetail: 
        { http://xml.apache.org/axis/ <http://xml.apache.org/axis/> }stackTrace: java.net.SocketTimeoutException:
Read timed out 
        at java.net.SocketInputStream.socketRead0(Native Method) 
        at java.net.SocketInputStream.read(SocketInputStream.java:141) 
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:198) 
        at java.io.BufferedInputStream.read(BufferedInputStream.java:216) 
        at org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPSender.java:506)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:127) 
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)

        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) 
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) 
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) 
        at org.apache.axis.client.Call.invokeEngine(Call.java:2564) 
        at org.apache.axis.client.Call.invoke(Call.java:2553) 
        at org.apache.axis.client.Call.invoke(Call.java:2248) 
        at org.apache.axis.client.Call.invoke(Call.java:2171) 
        at org.apache.axis.client.Call.invoke(Call.java:1691) 
        at net.ascc.DORE.servlets.newDoreListWS.doGet(newDoreListWS.java:102) 
        at net.ascc.DORE.servlets.newDoreListWS.doPost(newDoreListWS.java:38) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
        at org.apache.catalina.core.ApplicationFilterChain.in 
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)

        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) 
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)

        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)

        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)

        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 


Privileged/Confidential Information may be contained in this message. If you are not the addressee
indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that do not relate to the official
business of my firm shall be understood as neither
given nor endorsed by it. 


Mime
View raw message