commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khy...@zycus.com
Subject CopyStreamException on FTP Server
Date Tue, 28 Mar 2006 10:08:59 GMT
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-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message