camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10009) Using <to> with id and ref fails
Date Fri, 03 Jun 2016 08:47:59 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-10009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-10009.
---------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message