Hi,

It should be caused by somehow your external webservice can't handle request in time. You can try to configure your cxf client use larger timeout to see if it helps.

Take  a look at [1] to get more details

[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html

Freeman
On 2010-9-15, at 上午1:27, ssheth wrote:


We are using ServiceMix 4.2

We are using jaxws:server component for our webservice. Our webservice
routes request to an external WebService.

We haven't change any Session timeout parameters for CXF.

Once in a while we see:
java.net.SocketTimeoutException: Read timed out error

Here is the log:
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at
org .apache .cxf .service .invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
       at
org .apache .cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
       at
org .apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java: 60)
       at
org .apache .cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
       at
org.apache.cxf.interceptor.ServiceInvokerInterceptor $1.run(ServiceInvokerInterceptor.java:58)
       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
       at java.util.concurrent.FutureTask.run(Unknown Source)
       at
org .apache .cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java: 37)
       at
org .apache .cxf .interceptor .ServiceInvokerInterceptor .handleMessage(ServiceInvokerInterceptor.java:106)
       at
org .apache .cxf .phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java: 243)
       at
org .apache .cxf .transport .ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
       at
org .apache .cxf .transport .http_jetty .JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)
       at
org .apache .cxf .transport .http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java: 276)
       at
org .apache .cxf .transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java: 70)
       at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765)
       at
org .mortbay .jetty .handler .ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
       at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152)
       at org.mortbay.jetty.Server.handle(Server.java:326)
       at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542)
       at
org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
       at
org .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409)
       at
org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking
http://hostname/services/MyWebService: Read timed out
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at
org.apache.cxf.transport.http.HTTPConduit $WrappedOutputStream.mapException(HTTPConduit.java:2011)
       at
org.apache.cxf.transport.http.HTTPConduit $WrappedOutputStream.close(HTTPConduit.java:1992)
       at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java: 66)
       at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:640)

--
View this message in context: 
http://servicemix.396122.n5.nabble.com/java-net-SocketTimeoutException-Read-timed-out-tp2839496p2839496.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


--
Freeman Fang

------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to