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

Jin Uh commented on NET-162:
----------------------------

Hi,

It seems it only occurs in Windows environment totally at random.
If the same process is executed repeatly in SunOs 5.10, i386 and SunOS 5.8 
sparc, it could able to log out from the remote server successfully without any 
problem. 



> 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