axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bobak, Greg P." <GregBo...@ColeNational.com>
Subject RE: "read time out" problem
Date Mon, 28 Jul 2003 13:08:16 GMT
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
-----Original Message-----
From: doug [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/" );          
                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/" );          
                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/}Server.userException
 faultSubcode: 
 faultString: java.net.SocketTimeoutException: Read timed out
 faultActor: 
 faultNode: 
 faultDetail: 
	{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.j
ava: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(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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