You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Sudeep Bajaj <su...@hotmail.com> on 2009/06/27 09:26:56 UTC

Re: FTPClient (Apache Commons FTP 2.0) throws Connection reset exception in Mac OS X Tiger

hi 
I am also facing same problem of connection reset in between of program.
anybody have any idea.

Regards,
Sudeep Bajaj


Das, Pranabesh X -ND wrote:
> 
> Hi,
> 
> I am using this FTP client library in a java program to access FTP
> servers
> in my organization's network. The java program runs / uploads /
> downloads
> files seamlessly when used in Mac OS X Leopard based machines; but fails
> when I use it from Mac OS X Tiger based machines.
> 
> I am getting an exception of "java.net.SocketException: Connection
> reset"
> when I am invoking the FTPClient's storeFile(String fileName,
> InputStream
> is) method.
> 
> I have tried setting up the socks-proxy settings, though the program ran
> fine without these settings in Mac OS X Leopard based machines.
> 
> Sequence of FTP calls in my program (I am omitting the obvious try-catch
> blocks and FTP connection checks with getReplyCode):
> 
> connect
> login
> enterLocalActiveMode
> setFileType(FTPClient.BINARY_FILE_TYPE)
> changeWorkingDirectory
> storeFile(String fileName, InputStream is)
> listFiles
> logout
> disconnect
> 
> Have anyone faced this problem? Any idea how I can solve this problem?
> 
> Thanks,
> Pranabesh
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/FTPClient-%28Apache-Commons-FTP-2.0%29-throws-Connection-reset-exception-in-Mac-OS-X-Tiger-tp21459189p24231018.html
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org