-
Bug
-
Resolution: Done
-
Major
-
None
I have slightly modified camel-example-main-health
@Override public void configure() throws Exception { from("timer:tick").id("myroute") .to("twitter-search:keywords").log("${body}"); }
I have enabled camel-health and I am getting route status using JMX. I can see errors in the log file
15:57:06.754 [Camel (MyHealthyCamel) thread #1 - timer://tick] WARN o.a.c.component.timer.TimerConsumer - Error processing exchange. Exchange[ID-localhost-localdomain-1594389425802-0-2]. Caused by: [java.lang.IllegalArgumentException - twitter or all of consumerKey, consumerSecret, accessToken, and accessTokenSecret must be set!]
java.lang.IllegalArgumentException: twitter or all of consumerKey, consumerSecret, accessToken, and accessTokenSecret must be set!
at org.apache.camel.component.twitter.TwitterConfiguration.checkComplete(TwitterConfiguration.java:90)
at org.apache.camel.component.twitter.TwitterConfiguration.getConfiguration(TwitterConfiguration.java:100)
at org.apache.camel.component.twitter.TwitterConfiguration.getTwitter(TwitterConfiguration.java:125)
at org.apache.camel.component.twitter.search.SearchProducer.process(SearchProducer.java:109)
at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:168)
at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:203)
at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
But the `health` MBean still reports that the route is UP and running.