camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From junaid <mjunaidmuzam...@gmail.com>
Subject Re: Catching HttpHostConnectException from Camel Restlet component
Date Fri, 03 Oct 2014 06:47:13 GMT
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 with the remote HTTP
server.
java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
	at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:157)
	at
org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:65)
	at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
	at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
	at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)
	at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
	at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
	at
org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
	at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
	at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
	at
org.restlet.ext.httpclient.internal.HttpMethodCall.sendRequest(HttpMethodCall.java:347)
	at
org.restlet.ext.httpclient.internal.HttpMethodCall.sendRequest(HttpMethodCall.java:371)
	at org.restlet.engine.adapter.ClientAdapter.commit(ClientAdapter.java:90)
	at
org.restlet.engine.adapter.HttpClientHelper.handle(HttpClientHelper.java:112)
	at org.restlet.Client.handle(Client.java:162)
	at org.restlet.Restlet.handle(Restlet.java:351)
	at org.restlet.Restlet.handle(Restlet.java:364)
	at
org.apache.camel.component.restlet.RestletProducer.process(RestletProducer.java:87)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
	at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:74)
	at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375)
	at
org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233)
	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343)
	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:201)
	at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:128)
	at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:115)
	at
org.apache.camel.impl.DefaultProducerTemplate.request(DefaultProducerTemplate.java:297)
	at
constellixrestnotifier.processors.HttpRestProcessor.sendRestRequest(HttpRestProcessor.java:45)
	at
constellixrestnotifier.processors.HttpRestProcessor.process(HttpRestProcessor.java:35)
	at
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
	at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)




--
View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp5757279p5757336.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message