Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in Java FTP by (140 points)
Hello!

When I use your edtFTPj 1.5.4 API (free version) as my FTP client to connect a FTP server concurrently (multiple connections at the same time from 2 different machines) using the same user name and password, I got the following error:

com.enterprisedt.net.ftp.FTPException: transfer failed
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:902)
at com.enterprisedt.net.ftp.FTPClient.initPut(FTPClient.java:1649)
at com.enterprisedt.net.ftp.FTPClient.putData(FTPClient.java:1704)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:1479)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:1465)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:1443)
at com.enterprisedt.FtpTester.main(FtpTester.java:37)
com.enterprisedt.net.ftp.FTPException: The FTP client has already been connected to the server. The requested action must be performed before a connection is established.
at com.enterprisedt.net.ftp.FTPClient.checkConnection(FTPClient.java:689)
at com.enterprisedt.net.ftp.FTPClient.setRemoteHost(FTPClient.java:907)
at com.enterprisedt.FtpTester.main(FtpTester.java:29)
com.enterprisedt.net.ftp.FTPException: The FTP client has already been connected to the server. The requested action must be performed before a connection is established.
at com.enterprisedt.net.ftp.FTPClient.checkConnection(FTPClient.java:689)
at com.enterprisedt.net.ftp.FTPClient.setRemoteHost(FTPClient.java:907)
at com.enterprisedt.FtpTester.main(FtpTester.java:29)

Please help me address this exception in code, if possible. Or please advise how to avoid this error.

Many thanks!

1 Answer

0 votes
by (162k points)
Can you isolate the code causing a problem and post it?

Categories

...