Hi,
I have the the following route:
from("quartz://MyTrigger/TriggerRouteStart?cron=0+0/5+*+*+*+?")
.routeId("TriggerRouteStart")
.to("activemq:queue:TriggerRouteStart");
This route should trigger every 5mins and put a message to TriggerRouteStart
queue however I get the following error. Shall I set the body before sending
any message to the Queue? I see in Camel documentation the following example
route which is similar:
from("quartz://myGroup/myTimerName?cron=0+0/5+12-18+?+*+MON-FRI").to("activemq:Totally.Rocks");
Here is my exception:
ERROR|2013-10-23 15:20:59,026|DefaultQuartzScheduler-camel_Worker-10|
QuartzEndpoint - Error processing exchange. Exchange[Message: [Body is
null]]. Caused by: [org.quartz.JobExecutionException -
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]]
INFO |2013-10-23 15:20:59,027|DefaultQuartzScheduler-camel_Worker-10|
JobRunShell - Job DEFAULT.quartz-endpoint14 threw a JobExecutionException:
org.quartz.JobExecutionException: org.apache.camel.CamelExecutionException:
Exception occurred during execution on the exchange: Exchange[Message: [Body
is null]] [See nested exception: org.apache.camel.CamelExecutionException:
Exception occurred during execution on the exchange: Exchange[Message: [Body
is null]]]
--
View this message in context:
http://camel.465427.n5.nabble.com/Body-is-null-exception-when-producing-JMS-messages-from-a-Quartz-endpoint-tp5742072.html
Sent from the Camel - Users mailing list archive at Nabble.com.