You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Ravyts, Sofie" <SO...@esko-graphics.com> on 2005/08/02 09:59:58 UTC
[FTP] malformed reply string
Hey,
I have a problem with using the ftp client.
I'm trying to login to a ftp server, but I get a
MalformedServerReplyException because the first reply string does not
start with a number (it is "tralpd211"?)
* org.apache.commons.net.MalformedServerReplyException:
Could not parse response code.
* Server Reply: tralpd211
* at
org.apache.commons.net.ftp.FTP.__getReply(FTP.java:280)
* at
org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:456)
* at
org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:484)
* at org.apache.commons.net.ftp.FTP.user(FTP.java:634)
* at
org.apache.commons.net.ftp.FTPClient.login(FTPClient.java:622)
* ...
If I use SmartFTP to the same server smartftp can handle this,
and the commons-ftp library can't...
Is there a way I can make the library handle these kind of
replies?
SmartFTP output:
USER sora
tralpd211
trapcd037 FTP server (tnftpd 20040810) ready.
331 Password required for sora.
Wkr, Sofie