1
votes

first,thanks for your attention i defined a outbound-gateway ftp adapter with polling as bellow code :

<int-ftp:outbound-gateway id="gatewayLS"
                              session-factory="ftpClientFactory"
                              request-channel="inboundFileChannel"
                              command="ls"
                              command-options="-1"
                              expression="'books/*'"
                              reply-channel="outboundJobRequestChannel">
        <int:poller fixed-rate="5000"/>
    </int-ftp:outbound-gateway>

but I got the following exception:
org.xml.sax.SAXParseException; lineNumber: 57; columnNumber: 40; cvc-complex-type.2.4.a: Invalid content was found starting with element 'int:poller'. One of '{"http://www.springframework.org/schema/integration/ftp":request-handler-advice-chain}' is expected. what is correct action for above problem? thanks

1

1 Answers

1
votes

This was fixed in version 4.1. The current version is 4.1.3.

If you can't move to 4.1.x (recommended), you can add a <bridge/> to bridge the pollable channel to a direct channel.