Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-04 Thread Claus Ibsen
Hi I suspect that WARN is from restlet / http client itself. We do not log a message with that text from Apache Camel. git grep "An error occurred during the communication with the remote HTTP" So you cannot do that, unless you configure your logging to use ERROR or turn off logging with the log

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
Thanks. Yes I am now able to catch the Exception using the getException(), but the stacktrace log is printed. Is there anyway to disable this particular log? -- View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp57572

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
I tried with version 2.13.2, but still I am getting the same exception. Than I moved to Camel Version 2.14.0. This time the stack trace is a bit different. Oct 03, 2014 11:44:05 AM org.restlet.ext.httpclient.internal.HttpMethodCall sendRequest WARNING: An error occurred during the communication wi

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread Claus Ibsen
Try with latest 2.13.x release. On Thu, Oct 2, 2014 at 5:30 AM, junaid wrote: > I am using Camel 2.13 > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp5757279p5757299.html > Sent from the Camel - Users

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread junaid
I am using Camel 2.13 -- View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp5757279p5757299.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread Claus Ibsen
And what version of Camel do you use? On Wed, Oct 1, 2014 at 3:06 PM, junaid wrote: > Attached below is the entire stack trace. > > > Oct 01, 2014 1:19:08 PM org.restlet.ext.httpclient.internal.HttpMethodCall > sendRequest > WARNING: An error occurred during the communication with the remote HTTP

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread junaid
Attached below is the entire stack trace. Oct 01, 2014 1:19:08 PM org.restlet.ext.httpclient.internal.HttpMethodCall sendRequest WARNING: An error occurred during the communication with the remote HTTP server. org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.21.26:8080

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread Claus Ibsen
Hi What version of Camel do you use? And can you print the entire stacktrace, assuming there is more than just a WARN log. On Wed, Oct 1, 2014 at 1:47 PM, junaid wrote: > Hello, > > I am using Camel Restlet component for connecting an HTTP Server. I am > sending messages to the HTTP server using