Hi,
I am using Spring ftp to get files from FTP. I use the ls and get commands with FTP outbound gateway. The code was working fine with SI 2.1.
But when I switched to 2.2 it started giving me the following error:
My namespace config:Code:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Filters are not supported with the rm, get, and mget commands
Where am i going wrong?Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-ftp="http://www.springframework.org/schema/integration/ftp" xsi:schemaLocation=" http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd http://www.springframework.org/schema/integration/ftp http://www.springframework.org/schema/integration/ftp/spring-integration-ftp-2.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"> <int-ftp:outbound-gateway command="ls" expression="payload" session-factory="ftpClientFactory" request-channel="ftpLsChannel" /> <int-ftp:outbound-gateway command="get" id="getOutbound" expression="payload" session-factory="ftpClientFactory" local-directory="/home/annuk/Desktop/my-requests/csv" filename-pattern="*.csv" request-channel="ftpGetChannel" />
Regards,
Annuk


Reply With Quote
