Hello

I´m producing my scheduled messages but when AMQ push the message to
consumer I´m receiving this error:

(...)
[               ActiveMQ Task-1] FailoverTransport              INFO 
Successfully connected to tcp://localhost:61616
[                          main] SpringCamelContext             INFO  Route:
route3 started and consuming from: Endpoint[activemq://destination]
[                          main] SpringCamelContext             INFO  Total
3 routes, of which 3 is started.
[                          main] SpringCamelContext             INFO  Apache
Camel 2.9.2 (CamelContext: camel-1) started in 0.776 seconds
*[4 - ErrorHandlerRedeliveryTask] DefaultErrorHandler            ERROR
Failed delivery for (MessageId: ID:garrydell-50721-1355941463944-2:1:2:1:1
on ExchangeId: ID-garrydell-50722-1355941464309-0-3). Exhausted after
delivery attempt: 4 caught: java.lang.NullPointerException
java.lang.NullPointerException
        at
org.apache.camel.component.bean.BeanInfo.chooseBestPossibleMethodInfo(BeanInfo.java:572)[camel-core-2.9.2.jar:2.9.2]
        at
org.apache.camel.component.bean.BeanInfo.chooseMethodWithMatchingBody(BeanInfo.java:545)[camel-core-2.9.2.jar:2.9.2]*
(...)

- I already set schedulerSupport=true;
- Camel version: 2.9.2;
- AMQ version: 5.5.1 (but also happens in 5.6);
- producing line:
/template.sendBodyAndHeader("direct:routeToAmqDestination", "I´m sending my
message!", "AMQ_SCHEDULED_DELAY", "30000");/ (but also happens with cron
schedule and period schedule types);
- AMQ runs standalone;
- No AMQ configurations in my spring context xml wich have only some beans
and camelContext defined;
- Non scheduled messages are succesfully consumed.

Who knows why this error occurs?

Thanx



--
View this message in context: 
http://camel.465427.n5.nabble.com/Howto-use-delay-message-brokerage-in-a-Camel-Route-using-AMQ-SCHEDULED-DELAY-tp4282763p5724397.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to