Claus Ibsen created CAMEL-10009:
-----------------------------------
Summary: Using <to> with id and ref fails
Key: CAMEL-10009
URL: https://issues.apache.org/jira/browse/CAMEL-10009
Project: Camel
Issue Type: Bug
Components: camel-core, camel-spring
Affects Versions: 2.17.1
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.16.4, 2.17.2, 2.18.0
If you use spring and then refer to an endpoint
{code}
<endpoint id="csv2json"
uri="dozer:csv2json?sourceModel=org.acme.Customer&targetModel=org.globex.Account&marshalId=json&unmarshalId=csv&mappingFile=transformation.xml"/>
{code}
And then in a route has
{code}
<to id="_to2" ref="csv2json"/>
{code}
Then you get this spring error
{code}
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
property 'ref' of bean class
[org.apache.camel.spring.CamelEndpointFactoryBean]: Bean property 'ref' is not
writable or has an invalid setter method. Does the parameter type of the setter
match the return type of the getter?
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)