So here's the answer:

http://cwiki.apache.org/CXF20DOC/client-http-transport.html


Note, the setReadTimeout method has changed to setReceiveTimeout, I
think? 

> -----Original Message-----
> From: Baker, John: IT (LDN) 
> Sent: 16 February 2009 12:43
> To: [email protected]
> Subject: Client side read timeout
> 
> Hi,
> 
> I'm making a WS call to a very slow server (HP Service 
> Center) and it's timing out, so how do I increase the read 
> timeout on the client?
> 
> 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.read1(BufferedInputStream.java:258)
>       at
> java.io.BufferedInputStream.read(BufferedInputStream.java:317)
>       at
> sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
>       at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
>       at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)
>       at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Htt
> pURLConnec
> tion.java:1049)
>       at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
>       at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.
> handleResp
> onseInternal(HTTPConduit.java:2001)
>       at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.
> handleResp
> onse(HTTPConduit.java:1980)
>       at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.
> close(HTTP
> Conduit.java:1905)
>       at
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit
> .java:66)
>       at
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:600)
>       at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSen
> derEndingI
> nterceptor.handleMessage(MessageSenderInterceptor.java:62)
>       ... 10 more
> 
> 
> _______________________________________________
> 
> This e-mail may contain information that is confidential, 
> privileged or otherwise protected from disclosure. If you are 
> not an intended recipient of this e-mail, do not duplicate or 
> redistribute it by any means. Please delete it and any 
> attachments and notify the sender that you have received it 
> in error. Unless specifically indicated, this e-mail is not 
> an offer to buy or sell or a solicitation to buy or sell any 
> securities, investment products or other financial product or 
> service, an official confirmation of any transaction, or an 
> official statement of Barclays. Any views or opinions 
> presented are solely those of the author and do not 
> necessarily represent those of Barclays. This e-mail is 
> subject to terms available at the following link: 
> www.barcap.com/emaildisclaimer. By messaging with Barclays 
> you consent to the foregoing.  Barclays Capital is the 
> investment banking division of Barclays Bank PLC, a company 
> registered in England (number 1026167) with its registered 
> office at 1 Churchill Place, London, E14 5HP.  This email may 
> relate to or be sent from other members of the Barclays Group.
> _______________________________________________
> 
_______________________________________________

This e-mail may contain information that is confidential, privileged or 
otherwise protected from disclosure. If you are not an intended recipient of 
this e-mail, do not duplicate or redistribute it by any means. Please delete it 
and any attachments and notify the sender that you have received it in error. 
Unless specifically indicated, this e-mail is not an offer to buy or sell or a 
solicitation to buy or sell any securities, investment products or other 
financial product or service, an official confirmation of any transaction, or 
an official statement of Barclays. Any views or opinions presented are solely 
those of the author and do not necessarily represent those of Barclays. This 
e-mail is subject to terms available at the following link: 
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the 
foregoing.  Barclays Capital is the investment banking division of Barclays 
Bank PLC, a company registered in England (number 1026167) with its registered 
office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be 
sent from other members of the Barclays Group.
_______________________________________________

Reply via email to