[ 
https://issues.apache.org/jira/browse/NET-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529069
 ] 

Arash Joorabchi commented on NET-162:
-------------------------------------

Hi Bjorn,

Thanks for your replay. I am repeating the process of logging in and logging 
out every one second. almost Half the times everything works ok and I receive 
the goodbye response from the server after ftp.logout() but sometimes this 
exception happens. does this indicate anything? 

could you please give me a hint about how I can capture the packet dump?

Thanks,
Arash

> 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.

Reply via email to