[ 
https://issues.apache.org/jira/browse/CAMEL-10009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311998#comment-15311998
 ] 

Claus Ibsen commented on CAMEL-10009:
-------------------------------------

If you use
{code}
  <to ref="csv2json"/>
{code}

then it works

> 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&amp;targetModel=org.globex.Account&amp;marshalId=json&amp;unmarshalId=csv&amp;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)

Reply via email to