You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by kh...@zycus.com on 2006/03/28 11:44:55 UTC

CopyStreamException on FTP Server

Hi All,

Not sure if this is the right place to post this message. If its not,
kindly direct me to the right mailing ID.

We are using "commons-net-1.2.2.jar" to store & retrieve a file from a FTP
server. We use the FTPClient of this jar.

When our code tries to store the File on FTP Server it fails giving this
error:

      org.apache.commons.net.io.CopyStreamException: IOException caught
while copying.

Part of the code storing file is as follows :

      ftpclient.setFileType(FTP.BINARY_FILE_TYPE);
      status = ftpclient.storeFile(serverfilenm, fis);


Moreover this doesn't happen for all the files, but only for few files.

Has anyone ever faced this before?  What could be the cause for this?

Any views on this would be helpful.

Thanks.
Khyati


Your only obligation in any lifetime is to be true to " yourself ".  -
Richard Bach

~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail contains confidential information and may be legally
privileged. It is intended solely for the addressee. Access to this email
by anyone else is unauthorized. If you are not the intended addressee,
please inform the sender immediately, delete the e-mail and do not copy,
disseminate, distribute, store, print or deliver this e-mail or information
therein to anybody. The sender and the Company are not liable for any
errors or omissions in this e-mail or for any claims, losses, damages
arising out of this e-mail and information contained therein.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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