Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.2.1
-
None
Description
With this xbean.xml file...
<beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0" xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:order="urn:my:ns:order" xmlns="http://www.springframework.org/schema/beans"> <ftp:poller service="order:partner1" endpoint="ftp" ... > <property name="marshaler"> <sm:defaultFileMarshaler encoding="ISO-8859-1"/> </property> </ftp:poller> </beans>
... you get this exception
org.springframework.beans.NotWritablePropertyException: Invalid property 'property' of bean class [org.apache.servicemix.ftp.FtpPollerEndpoint]: Bean property 'property' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter
Apparently, it is looking for a property named 'property' on the FtpPollerEndpoint instead of setting the 'marshaler' property as you would expect.