You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by Vladimir Sushkov <vs...@metaintegration.net> on 2008/04/09 19:59:31 UTC

Re: ASF Bugzilla - Bug 39644: FTP task fails, but reason is unclear

To whom it may concern,

I am having the same type of problem with Ant FTP task as described in the
ASF Bugzilla bug #39644:
https://issues.apache.org/bugzilla/show_bug.cgi?id=39644

FTP task seems to fail in the middle of large file transfers (~100Mb in size
and more) but the reason is not clear.
I am using the following components:
Apache Ant version 1.6.5 compiled on June 2 2005

Jakarta-oro-2.0.8.jar
Manifest.mf file:
-----------------------------------------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)

Name: org/apache/oro
Specification-Title: Jakarta ORO
Specification-Version: 2.0.8
Specification-Vendor: Apache Software Foundation
Implementation-Title: org.apache.oro
Implementation-Version: 2.0.8 2003-12-28 11:00:13
Implementation-Vendor: Apache Software Foundation
-------------------------------------------


commons-net-1.4.1.jar 
Manifest.mf:
-------------------------------------------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: Apache Jakarta Maven
Built-By: scohen
Package: org.apache.commons.net
Build-Jdk: 1.4.2_07
Extension-Name: commons-net
Specification-Title: Jakarta Commons Net
Specification-Vendor: The Apache Software Foundation
Specification-Version: 1.4.1
Implementation-Title: org.apache.commons.net
Implementation-Vendor: The Apache Software Foundation
Implementation-Version: 1.4.1
-------------------------------------------



I use the FTP task as follows (within the Anty script):
  <!--  create the remote MIRW directory if it does not yet exist   --> 
  <ftp server="${ftp.server}" action="mkdir" userid="${ftp.user}"
password="${ftp.password}" remotedir="${ftp.mirw.dir}" verbose="yes" /> 
  <!--  Upload MIRW   --> 
  <ftp server="${ftp.server}" action="put" userid="${ftp.user}"
password="${ftp.password}" remotedir="${ftp.mirw.dir}" verbose="yes"
binary="yes" depends="yes" timediffauto="true">
  	<!--  pick MIRW installer(s)   --> 
	<fileset dir="${installer.root}/${mirw.package.dir}">
  		<include name="${mirw.installer}" /> 
	 </fileset>
  </ftp>


The file size to trtansfer  is 143 MB (150,532,096 bytes).
The script fails with the following message:
upload.ftp.mirw:
      [ftp] Creating directory: MIRW/6.0.0.beta
      [ftp] Directory created OK
   [delete] Deleting: C:\Documents and Settings\MITI.MITI\Local
Settings\Temp\ant11519043300.tmp
      [ftp] sending files
      [ftp] transferring C:\User\MITI-6.x\Dev\InstallShield\MITI
Installer\Media\TOTAL_SOLUTION\Package\MetaIntegration-win32.exe

BUILD FAILED
C:\User\MITI-6.x\Dev\build\build.xml:918: error during FTP transfer:
org.apache.commons.net.io.CopyStreamException: IOException caught while
copying.


What is the resolution to the FTP exception problem? 
Are there any additional FTP task parameters that may help here (like # of
retries etc.)?

Thank you.
Vladimir