Hi,
I am using SI 2.2.0 now but I had the same problem with 2.1.0. I would like to use int-ftp:outbound-gateway but every time I define it I get the following exception.
So far I just want to define gateway (without use):

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-ftp="http://www.springframework.org/schema/integration/ftp"
	xmlns:int="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="
	http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd 
	http://www.springframework.org/schema/integration/ftp http://www.springframework.org/schema/integration/ftp/spring-integration-ftp.xsd
	http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
	
	<bean id="ftpSessionFactory" class="org.springframework.integration.ftp.session.DefaultFtpSessionFactory">
		<property name="host" value="foo"/>
		<property name="port" value="123"/>
		<property name="username" value="foo"/>
		<property name="password" value="foo"/>
	</bean>

	<int:channel id="ftpTransChannel">
		<int:queue />
	</int:channel>

	<int-ftp:outbound-gateway 
		id="outGateway"
		command="ls"
		expression="/path/"
		session-factory="ftpSessionFactory"
		request-channel="ftpTransChannel"/>
</beans>

Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.ftp.gateway.FtpOutboundGateway]: Constructor threw exception; nested exception is java.lang.NullPointerException
I had of course more complex functionality but once I got this exception I reduced it to this basic form but the exception is still there. Do you have any idea what can cause the problem?


---------------------------------
My second question is - can be int-ftp:outbound-gateway triggered simply via sending Message into ftpTransChannel (lets say in service-activator)?

Code:
Message<String> msg = MessageBuilder.withPayload("/").build();
ftpTransChannel.send(msg);
Thank you,
Jakub