[
https://issues.apache.org/activemq/browse/SM-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43722#action_43722
]
Gert Vanthienen commented on SM-1425:
-------------------------------------
A workaround is removing the
{{xmlns="http://www.springframework.org/schema/beans"}}. Without it, things
start working as expected again.
> Property 'property' not found when
> xmlns="http://www.springframework.org/schema/beans" is defined
> -------------------------------------------------------------------------------------------------
>
> Key: SM-1425
> URL: https://issues.apache.org/activemq/browse/SM-1425
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-core
> Affects Versions: 3.2.1
> Reporter: Gert Vanthienen
> Fix For: 3.2.2, 3.3
>
>
> With this xbean.xml file...
> {code:xml}
> <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>
> {code}
> ... you get this exception
> {noformat}
> 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
> {noformat}
> Apparently, it is looking for a property named 'property' on the
> FtpPollerEndpoint instead of setting the 'marshaler' property as you would
> expect.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.