Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.17.1
-
None
-
Unknown
Description
If you use spring and then refer to an endpoint
<endpoint id="csv2json" uri="dozer:csv2json?sourceModel=org.acme.Customer&targetModel=org.globex.Account&marshalId=json&unmarshalId=csv&mappingFile=transformation.xml"/>
And then in a route has
<to id="_to2" ref="csv2json"/>
Then you get this spring error
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?