Logout failure
--------------

                 Key: NET-162
                 URL: https://issues.apache.org/jira/browse/NET-162
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 1.4
         Environment: Windows
            Reporter: Arash Joorabchi


Hi all,

I have a small class that just logs into a FTP serever and then Logs out

I tried both of the following lines for logging out

      1. ftp.logout();
      2. ftp.sendCommand("quit");

and they both cause this exception:

Connected to www.ideas.ie.
220 ProFTPD 1.3.0a Server (IDEAs FTP Server) [193.1.99.22]
230 User **** logged in.
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
0
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
        at 
org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:114)
        at 
org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:535)
        at java.lang.Thread.run(Thread.java:619)

Any suggestions ?

Does  ftp.disconnect has the same effect as logging out ? Because disconnect 
function works allright.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to