Hello, I want to setup the pattern "Dead Letter channel" for handling errors and execption generated in my flow ( camel route).
my setup is as follows: <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route errorHandlerRef="myDeadLetterChannel"> <from uri="activemq:queue:SMTP"/> <t uri="smtp://serv-smtp-fr:25?password=password&username=user&from=u...@localhost&to=u...@localhost"/> </ route> </camelContext> <bean id="myDeadLetterChannel" class="org.apache.camel.builder.DeadLetterChannelBuilder"> <property name="deadLetterUri" value="activemq:queue:error"/> <property name="redeliveryPolicy" ref="myRedeliveryPolicy"/> </bean> <bean id="myRedeliverPolicy" class="org.apache.camel.processor.RedeliverPolicy"> <propery name="maximumRedeliveries" value="5"/> <property name="delay" value="5000"/> </bean> by starting ActiveMQ, I receive the following error : INFO BrokerService - ActiveMQ JMS Message Broker (FR03LAP621, ID:FR03LAP621-1730-1254324864897-0:0) stopped ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myDeadLetterErrorHandler' defined in class path resource [activemq.xml]: Error setting property values; nested exception is org.springframe work.beans.NotWritablePropertyException: Invalid property 'deadLetterUri' of bean class [org.apache.camel.builder.DeadLetterChannelBuilder]: Bean prop erty 'deadLetterUri' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanCreationException: Error creating bean with na me 'myDeadLetterErrorHandler' defined in class path resource [activemq.xml]: Error setting property values; nested exception is org.springframework.be ans.NotWritablePropertyException: Invalid property 'deadLetterUri' of bean class [org.apache.camel.builder.DeadLetterChannelBuilder]: Bean property 'd eadLetterUri' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.activemq.console.Main.runTaskClass(Main.java:225) at org.apache.activemq.console.Main.main(Main.java:106) Thank you for helping me solve the problem, best regards, titexe -- View this message in context: http://www.nabble.com/Dead-Letter-Channel-%3A-Error-on-configuring-dead-letter-channel-tp25683735p25683735.html Sent from the Camel - Users mailing list archive at Nabble.com.