Hi,

From the log I can see the http client get the 200 http response, but the connection is closed after 10 seconds

Just checked the HttpProducer code it will call
InputStream is = method.getResponseBodyAsStream();
to get the response, it looks like the server can't return any data in the 10 seconds.

Can you make sure the server return the response rightly ?

Willem

On 3/16/11 8:34 AM, rosmons wrote:
Hi,
We have recently upgraded to Camel 2.5.0 from 1.4.0.
Almost everything seems to be working after making all the necessary
changes.
I'm attaching a route definition as a separate file.
In my route i am posting an xml message to a recipientList which maybe
http/ftp/sftp.
Now, everything seems to be working fine except that in the case of a
particular client route(http) I get 200 as the response code but I also seem
to get a Read timed out and onException block seems to be handling it and
passing to another route.

Now, the problem I find is that in this scenario the exchange that is passed
to the next route by the Error handler has the message body as null.
I'm attaching the log with level set to TRACE so you can see the trace logs.

I have checked the TRACE log for httpclient and it seems to be fine.
To me it looks like a bug in camel's TransactionErrorHandler but I'm not
able to find the exact cause.
Any help is appreciated.
thanks,
Rosmon


attached files:
http://camel.465427.n5.nabble.com/file/n3741631/camelRoute.txt
camelRoute.txt
http://camel.465427.n5.nabble.com/file/n3741631/CamelLog.txt CamelLog.txt

--
View this message in context: 
http://camel.465427.n5.nabble.com/Http-route-returning-with-200-but-also-getting-read-timed-out-tp3741631p3741631.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to