@Produce - Causes BeanInvocation to be kept as Body which causes problem with subsequent bean invocations ---------------------------------------------------------------------------------------------------------
Key: CAMEL-2325 URL: https://issues.apache.org/activemq/browse/CAMEL-2325 Project: Apache Camel Issue Type: Bug Components: camel-core Affects Versions: 2.1.0, 2.0.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.2.0 The route {code} <camelContext id="camel" trace="true" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="direct:start"/> <to uri="log:foo"/> <split> <method bean="cool" method="split"/> <transform><simple>Hello ${body}</simple></transform> <to uri="mock:split"/> </split> </route> </camelContext> {code} Is caused problem when a @Produce bean is used to send a message to the route. 2010-01-01 18:07:43,720 [main ] ERROR DefaultErrorHandler - Failed delivery for exchangeId: b7098680-4a16-4289-bdf4-3197b0b37aea. Exhausted after delivery attempt: 1 caught: org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: split on cool due to: org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: object is not an instance of declaring class -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.