camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele <michele.mazzi...@finconsgroup.com>
Subject Re: Error Handling and Redelivery Policy between routes
Date Sat, 30 Jan 2016 08:03:14 GMT
Hi Stevenson,

thanks a lot again. Yes, I force the failure in the CRM_LoginRoute that
throws the exception to main route where is defined a DLQ Error Handler.
Redelivery Policy doesn't work because attempts are always 1. Following a
piece of log

08:46:16,113 | INFO  | rmalizedTickets] | DataWithIdempotentStrategy_Route |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
ProcessingMessageData_Route
08:46:16,113 | INFO  | rmalizedTickets] | DataWithIdempotentStrategy_Route |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Processing
Message with IdempotentId 02a17f8e82722d79635d1579e51bc588
08:46:16,113 | INFO  | rmalizedTickets] | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
CRM_LoginRoute
08:46:16,128 | INFO  | rmalizedTickets] | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Sent Request
login to CRM:
{"platform":"base_IF-Customer_1454139976113","username":"admin","client_secret":"","grant_type":"password","client_id":"sugar","password":"admin"}
08:46:16,159 | INFO  | read #27 - Split | NormalizingMessageData_Route     |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | END with
NormalizingMessageData_Route
08:46:17,168 | WARN  | rmalizedTickets] | HttpExchange                     |
94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
CONNECTION FAILED
ContentExchange@40578943=POST//127.0.0.1:81/CRT_2_0/rest/v10/oauth2/token#CONNECTING(1024ms)->EXCEPTED(0ms)
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79]
	at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79]
	...
08:46:17,168 | WARN  | rmalizedTickets] | DeadLetterChannel                |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Failed delivery
for (MessageId: ID-FGBAL201530-50468-1454139836959-1-8 on ExchangeId:
ID-FGBAL201530-50468-1454139836959-1-5). On delivery attempt: 0 caught:
org.apache.camel.CamelExchangeException: JettyClient failed cause by:
Connection refused: no further information. Exchange[JmsMessage@0x5dfa0735].
Caused by: [java.net.ConnectException - Connection refused: no further
information]
08:47:17,187 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
CRM_LoginRoute
08:47:17,187 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Sent Request
login to CRM:
{"platform":"base_IF-Customer_1454140037187","username":"admin","client_secret":"","grant_type":"password","client_id":"sugar","password":"admin"}
08:47:18,206 | WARN  | erRedeliveryTask | HttpExchange                     |
94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
CONNECTION FAILED
ContentExchange@46d988db=POST//127.0.0.1:81/CRT_2_0/rest/v10/oauth2/token#CONNECTING(1019ms)->EXCEPTED(0ms)
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79]
	at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79]
	...
08:47:18,206 | WARN  | erRedeliveryTask | DeadLetterChannel                |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Failed delivery
for (MessageId: ID-FGBAL201530-50468-1454139836959-1-10 on ExchangeId:
ID-FGBAL201530-50468-1454139836959-1-5). On delivery attempt: 1 caught:
org.apache.camel.CamelExchangeException: JettyClient failed cause by:
Connection refused: no further information. Exchange[JmsMessage@0x73a80633].
Caused by: [java.net.ConnectException - Connection refused: no further
information]
08:48:18,215 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
CRM_LoginRoute
08:48:18,215 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Sent Request
login to CRM:
{"platform":"base_IF-Customer_1454140098215","username":"admin","client_secret":"","grant_type":"password","client_id":"sugar","password":"admin"}
08:48:19,241 | WARN  | erRedeliveryTask | HttpExchange                     |
94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
CONNECTION FAILED
ContentExchange@7f9f6d95=POST//127.0.0.1:81/CRT_2_0/rest/v10/oauth2/token#CONNECTING(1026ms)->EXCEPTED(0ms)
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79]
	at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79]
	...
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
08:48:19,241 | WARN  | erRedeliveryTask | DeadLetterChannel                |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Failed delivery
for (MessageId: ID-FGBAL201530-50468-1454139836959-1-12 on ExchangeId:
ID-FGBAL201530-50468-1454139836959-1-5). *On delivery attempt: 1* caught:
org.apache.camel.CamelExchangeException: JettyClient failed cause by:
Connection refused: no further information. Exchange[JmsMessage@0x3bd392a8].
Caused by: [java.net.ConnectException - Connection refused: no further
information]
08:49:19,257 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
CRM_LoginRoute
08:49:19,257 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Sent Request
login to CRM:
{"platform":"base_IF-Customer_1454140159257","username":"admin","client_secret":"","grant_type":"password","client_id":"sugar","password":"admin"}
08:49:20,287 | WARN  | erRedeliveryTask | HttpExchange                     |
94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
CONNECTION FAILED
ContentExchange@14bbe442=POST//127.0.0.1:81/CRT_2_0/rest/v10/oauth2/token#CONNECTING(1030ms)->EXCEPTED(0ms)
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79]
	at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79]
	...
08:49:20,287 | WARN  | erRedeliveryTask | DeadLetterChannel                |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Failed delivery
for (MessageId: ID-FGBAL201530-50468-1454139836959-1-14 on ExchangeId:
ID-FGBAL201530-50468-1454139836959-1-5). On delivery attempt: 1 caught:
org.apache.camel.CamelExchangeException: JettyClient failed cause by:
Connection refused: no further information. Exchange[JmsMessage@0x3b86b3b0].
Caused by: [java.net.ConnectException - Connection refused: no further
information]
08:50:20,305 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | START -
CRM_LoginRoute
08:50:20,305 | INFO  | erRedeliveryTask | CRM_LoginRoute                   |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Sent Request
login to CRM:
{"platform":"base_IF-Customer_1454140220305","username":"admin","client_secret":"","grant_type":"password","client_id":"sugar","password":"admin"}
08:50:21,319 | WARN  | erRedeliveryTask | HttpExchange                     |
94 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
CONNECTION FAILED
ContentExchange@18cf8fcb=POST//127.0.0.1:81/CRT_2_0/rest/v10/oauth2/token#CONNECTING(1014ms)->EXCEPTED(0ms)
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79]
	at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79]
	...
08:50:21,319 | WARN  | erRedeliveryTask | DeadLetterChannel                |
198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Failed delivery
for (MessageId: ID-FGBAL201530-50468-1454139836959-1-16 on ExchangeId:
ID-FGBAL201530-50468-1454139836959-1-5). *On delivery attempt: 1* caught:
org.apache.camel.CamelExchangeException: JettyClient failed cause by:
Connection refused: no further information. Exchange[JmsMessage@0x62e96526].
Caused by: [java.net.ConnectException - Connection refused: no further
information]

This is very strange... I use JBoss Fuse 6.2 based on Camel with version 
2.15.1.redhat-620133.

I'll try to do your example in JBoss Fuse and let you know.

Thanks for your support.

Greeting

Michele




--
View this message in context: http://camel.465427.n5.nabble.com/Error-Handling-and-Redelivery-Policy-between-routes-tp5776905p5777038.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message