Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

Guest

quote command does not return results

by Guest » Tue Jun 08, 2004 7:11 am

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
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: quote command does not return results

by support2 » Tue Jun 08, 2004 7:26 am

Can you enable a debug log and post it here?
no avatar
User

Guest

by Guest » Tue Jun 08, 2004 8:27 am

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

Who is online

Users browsing this forum: No registered users and 126 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron