Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6k views
in Java FTP by
can anybody suggest what the problem is :
we are executing this code in several places - this starts a command on another server, and normally returns fine (does not wait for the command to complete) and no errors
I am having trouble getting a return from a specific function -
should I have other codes in here also - ??
The function appears to hang and yet the thread ends without putting out any further log entries and there should be processing past this point regardless of the ftp result !!!
running the quote command from a bat file is fine !!
any ideas accepted gratefully -

try {
String[] validReturnCodes={"213"} ;
theclient.quote(strng, validReturnCodes) ;
} catch(FTPException XXX) {
logstr="@@ Error in quote cmd = " + XXX.getMessage()
System.err.println(PN + logstr) ; }
catch(Exception YYY) {
logstr="@@ Error in quote cmd = " + YYY.getMessage() ;
System.err.println(PN + logstr) ; }

thanks - Veronica

2 Answers

0 votes
by (161k points)
Can you enable a debug log and post it here?
0 votes
by
hello - thanks for your response - I have just got it to work with the most recent version, and using the jars, instead of recompiled classes which
another programmer had set up - that was a very old version which
didnt have the String return capability.
Now I can capture the response in all cases at least
It doesnt really solve the very odd behaviour tho -
If I get the same result going forward i will post again -

- Veronica

Categories

...