Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1425

Property 'property' not found when xmlns="http://www.springframework.org/schema/beans" is defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.2.2, 3.3
    • servicemix-core
    • 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.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: