Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.17.1
-
Component/s: camel-core, camel-spring
-
Labels:None
-
Estimated Complexity: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?