Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5k views
in Java FTP by (160 points)
Dear friends,

We are using EDT FTP java package in our application to ftp to some lucent switches. Since these switches were upgraded from Fone TP server version to another our application fails for all switches except for one. These are behaviours when I quit with that one switch compared to others.

Sucessful FTP:
==========
ftp> quit
221 Goodbye.


Failed FTP
=======
ftp> quit
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 1838 bytes in 1 transfers.
221-Thank you for using the FTP service on ny-westbury1.
221 Goodbye.


This behavioral difference is causing FTP to fail with errors like - FileNotFoundException, FTPException, IOException etc.. and it's not consistent.

Question is: how can I make FTPClient to work successfully irrespective of what output I see after quit. We do settings like BINARY, PASV etc., Is there something like that can be done?

Your help appreciated in advance.

Thank you
- John

3 Answers

0 votes
by (161k points)
This should work - if not, it is a bug.

Can you post a log file please (with DEBUG level) & we will try to figure out what the problem is. If you aren't using the latest version (1.5.1), please upgrade also.
0 votes
by (160 points)
Bruce,

Thanks for the response. Here's the log:

[quote][FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.3.48.50; CLLI = BOITIDARCM0 : java.io.IOException: Broken pipe
at com.sprint.ants.ANTS_EMS_Gateway.FtpSwitchCmdr.downloadRcvLog(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.LucentSwitch.rcvLogDownload(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.SwitchInstanceMapper.performRcvLogDownload(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.ANTSRcvLogActivity.run(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.activity.ActivityScheduler.run(Unknown Source)
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 207.45.14.146; CLLI = IRVNCAAGCM2 : java.io.IOException: Broken pipe
at com.sprint.ants.ANTS_EMS_Gateway.FtpSwitchCmdr.downloadRcvLog(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.LucentSwitch.rcvLogDownload(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.SwitchInstanceMapper.performRcvLogDownload(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.ANTSRcvLogActivity.run(Unknown Source)
at com.sprint.ants.ANTS_EMS_Gateway.activity.ActivityScheduler.run(Unknown Source)[/quote]

That was one sample I am getting now. Here are other types of exceptions I am seing.

[quote][FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.68.53; CLLI = PITBPAWOCM0 : java.io.FileNotFoundException: /tmp/PITBPAWOCM0./omp-data/logs/rcvlog/050605.RCV.Z (No such file or directory)
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.82.53; CLLI = BTVLMDCKCM1 : java.io.FileNotFoundException: /tmp/BTVLMDCKCM1./omp-data/logs/rcvlog/050605.RCV.Z (No such file or directory)
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.3.80.53; CLLI = RENPNVATCM0 : com.enterprisedt.net.ftp.FTPException: Timeout (900 seconds): closing control connection.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.15.128.61; CLLI = LNNGMI55CM1 : com.enterprisedt.net.ftp.FTPException: Data connection: Interrupted system call.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.15.128.53; CLLI = LNNGMI55CM0 : com.enterprisedt.net.ftp.FTPException: Data connection: Interrupted system call.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.80.59; CLLI = PHLAPAFGCM1 : com.enterprisedt.net.ftp.FTPException: Data connection: Interrupted system call.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.143.53; CLLI = ENWDCO69CM1 : com.enterprisedt.net.ftp.FTPException: Data connection: Error 0.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.3.80.53; CLLI = RENPNVATCM0 : java.io.IOException: Broken pipe
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 207.45.14.170; CLLI = SNDHCAXPCM1 : com.enterprisedt.net.ftp.FTPException: Timeout (900 seconds): closing control connection.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.3.53; CLLI = OKLDCA61CM0 : com.enterprisedt.net.ftp.FTPException: Timeout (900 seconds): closing control connection.
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.64.62; CLLI = WLPLMAALCM1 : java.io.IOException: Broken pipe
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.3.16.50; CLLI = SFSPCAPOCM0 : java.io.IOException: Broken pipe
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.78.53; CLLI = TTBONJ12CM2 : java.io.IOException: Broken pipe
[FTP_TRANSFER_FAILURE]Could not get RCV Log File at 10.1.143.53; CLLI = ENWDCO69CM1 : java.io.IOException: Broken pipe[/quote]

I am not sure what version we are using. Is there a way I can check?

thanks,
john
0 votes
by (161k points)
You can get the version number by unjaring the edtftp.jar file and looking in the manifest.

These are stack traces, you should be able to also get a log file - see the Developers Guide or the demo code in the demo directory for how to capture logging info.

Timeout exceptions are because your connection timed out - the FTP server has terminated your connection.

Categories

...