[ 
https://issues.apache.org/jira/browse/CAMEL-11829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178895#comment-16178895
 ] 

Claus Ibsen commented on CAMEL-11829:
-------------------------------------

Ah maybe we can say in the exception message that "This is a forced exception 
to have health check monitor this failure" or something. And maybe mention it 
in the readme file too.

> [example] spring-boot-health-checks - 'application' keep emitting ERRORs
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-11829
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11829
>             Project: Camel
>          Issue Type: Sub-task
>          Components: examples
>            Reporter: Tomohisa Igarashi
>             Fix For: 2.20.0
>
>
> {code}
> 2017-09-24 08:46:03.929 ERROR 25801 --- [2 - timer://bar] 
> o.a.camel.processor.DefaultErrorHandler  : Failed delivery for (MessageId: 
> ID-tomo-p50-1506257079785-0-395 on ExchangeId: 
> ID-tomo-p50-1506257079785-0-393). Exhausted after delivery attempt: 1 caught: 
> org.apache.camel.RuntimeCamelException: fail (bar)
> Message History
> ---------------------------------------------------------------------------------------------------------------------------------------
> RouteId              ProcessorId          Processor                           
>                                              Elapsed (ms)
> [bar               ] [bar               ] [timer://bar?period=1s              
>                                            ] [         2]
> [bar               ] [process2          ] [Processor@0x2cd311fc               
>                                            ] [         0]
> Stacktrace
> ---------------------------------------------------------------------------------------------------------------------------------------
> org.apache.camel.RuntimeCamelException: fail (bar)
>       at 
> sample.camel.ApplicationConfiguration$1.lambda$configure$1(ApplicationConfiguration.java:38)
>  ~[classes/:na]
>       at 
> org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
>  ~[camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at 
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>  ~[camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  [camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  [camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at 
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)
>  [camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at 
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) 
> [camel-core-2.20.0-SNAPSHOT.jar:2.20.0-SNAPSHOT]
>       at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.8.0_144]
>       at java.util.TimerThread.run(Timer.java:505) [na:1.8.0_144]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to