camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rosmons <rosmon.sid...@gmail.com>
Subject Re: Http route returning with 200 but also getting read timed out
Date Thu, 17 Mar 2011 18:29:29 GMT
@Willem:

We have found that this issue can be fixed by making a change to the
HttpProducer.java class.
The issue is that we're extracting the body after calling the
"exchange.getOut()".

This means that if there's an exception while extracting the body the
original message will not get sent to the errorhandler/onException. Instead
a message with empty headers and body is sent.

I moved the "extractResponseBody(method, exchange)" to a line above
"exchange.getOut()" and am able to get the desired result.

You can see the attached diff file to see the change that we have made.

http://camel.465427.n5.nabble.com/file/n3893573/HttpProducer.java.diff
HttpProducer.java.diff 

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

Mime
View raw message