Facing FTPConnectionClosedException when using FTPProvider in ESB to connect to FTP server over FTPS protocol,
Issue
- When using
FTPProvider
inESB
to connect to anFTP
server overFTPS
protocol it throwsFTPConnectionClosedException
as shown below. What could be the root cause behind this issue and how to fix it? Do note while using externalFTP clients
to connect to FTP servers it works fine.
...
Caused by: org.jboss.soa.esb.util.RemoteFileSystemException: org.jboss.soa.esb.util.RemoteFileSystemException: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
at org.jboss.soa.esb.util.RemoteFileSystemFactory.getRemoteFileSystem(RemoteFileSystemFactory.java:70)
...
Caused by: org.jboss.soa.esb.util.RemoteFileSystemException: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
at org.jboss.internal.soa.esb.util.FtpImpl.initialize(FtpImpl.java:470)
at org.jboss.internal.soa.esb.util.FtpsImpl.<init>(FtpsImpl.java:80)
at org.jboss.soa.esb.util.RemoteFileSystemFactory.getRemoteFileSystem(RemoteFileSystemFactory.java:64)
... 16 more
Caused by: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:364)
at org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:540)
at org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:167)
at org.apache.commons.net.SocketClient.connect(SocketClient.java:178)
at org.jboss.internal.soa.esb.util.FtpImpl.connect(FtpImpl.java:486)
at org.jboss.internal.soa.esb.util.FtpsImpl.connect(FtpsImpl.java:165)
at org.jboss.internal.soa.esb.util.FtpImpl.initialize(FtpImpl.java:435)
... 18 more
- The
ESB
configuration looks like below.
...
<ftp-provider name="FTPProvider" hostname="10.10.10.10" >
<ftp-bus busid="TestFTPBus" >
<ftp-message-filter
username="test"
password="test"
passive="true"
directory="/incoming"
input-suffix=".csv"
work-suffix=".esbWorking"
post-delete="false"
post-suffix=".COMPLETE"
error-delete="false"
error-suffix=".HAS_ERROR"
/>
</ftp-bus>
</ftp-provider>
...
Environment
- Red Hat JBoss SOA Platform (SOA-P)
- 5.3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.