Hi, I'm sending in an onException clause the exchange to another camel route via JMS. In order to handle the error, the idea was to use transferExchange=true, since the documentations states the exchange exception is transferred as well.
Unfortunately I get this error in the JMS listener: -------------------------------------------------------------------------------------------------------- Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - Failed to extract body due to: javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class org.apache.camel.impl.DefaultExchangeHolder! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.. -------------------------------------------------------------------------------------------------------- I found out that there is a way to configure the security settings on the AMQ, but I was surprised that this is not mentioned somewhere. Did anybody else encounter this problem? Camel 2.17.0 AMQ 5.11.0 Regards, Thomas Leber