commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emerson CastaƱeda <eme...@gmail.com>
Subject Re: [net] Getting MalformedServerReplyException in FTPClientExample Class
Date Sat, 02 Apr 2016 00:04:43 GMT
On Apr 2, 2016 1:33 AM, "sebb" <sebbaz@gmail.com> wrote:
>
> On 1 April 2016 at 23:17, Emerson CastaƱeda <emecas@gmail.com> wrote:
> > Hello
> >
> > I'm using FTPClientExample
> > <
https://commons.apache.org/proper/commons-net/examples/ftp/FTPClientExample.java
>class
> > with these parameters:
>
> Which version?

3.4
>
> >
> > java FTPClientExample -l -p SFTP 192.158.76.218:22 user pwd
> >
> >
> > I'm getting this exception:
> >
> > Could not connect to server.
> > org.apache.commons.net.MalformedServerReplyException: Could not parse
> > response code.
> > Server Reply: SSH-2.0-OpenSSH_5.3
> >     at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:336)
> >     at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:292)
> >     at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:418)
> >     at
> > org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:966)
> >     at
> > org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:954)
> >     at
> >
org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:222)
> >     at
org.apache.commons.net.SocketClient.connect(SocketClient.java:189)
> >     at
org.apache.commons.net.SocketClient.connect(SocketClient.java:209)
> >     at lib_ftputility.FTPClientExample.main(FTPClientExample.java:311)
>
> There should be some more output before the exception.

No more output.

>
> >
> > Thanks in advance for your support
> >
> >
> > Emerson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message