Hi Robert, If possible, can you try same thing i,e transfer files to a another server(machine with ftp service enable) . That way it would confirm whether the problem is with ant FTP task or the machine u r trying to connect.
Vinay -----Original Message----- From: Ivan Ivanov [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 4:20 PM To: Ant Users List Subject: Re: CopyStreamException on FTP task Hello, Robert I did a quick google for "CopyStreamException" and I found the following topic. http://java2.5341.com/msg/42499.html One of the answers (I do not know whether it has been the real reason) was: the exception was thrown because the target machine was out of disk space. HTH Ivan --- Robert Koberg <[EMAIL PROTECTED]> wrote: > Hi, > > When executing the FTP task, I consistently get a > SocketException: > Connection reset > > I have no problem uploading the files with other FTP > clients using the > same host, username and password. > > This is going to a windows server (I have sent a > request for the logs > but I doubt the client knows how to get them). > > I am using ant 1.6.2, commons-net 1.2.2, jakarta-oro > 2.0.8 (jdk 1.4.2). > I have tried this on WinXP with SP2 and OSX. > > I have tried a variety of options in the task, but > after a few files, I > get the exception. Any ideas how I can get this to > work? > > Here is the debug output from the task: > > > promote-remote-ftp: > [ftp] Opening FTP connection to xx.xx.xx.xx > [ftp] connected > [ftp] logging in to FTP server > [ftp] login succeeded > [ftp] changing the remote directory > [ftp] sending files > Could not load a dependent class > (com/sun/media/jai/codec/FileSeekableStream) for > type image > Could not load class > (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) > for type cvsversion > Could not load a dependent class > (jdepend/xmlui/JDepend) for type jdepend > Could not load a dependent class > (junit/framework/Test) for type junit > fileset: Setup scanner in dir > C:\home\app\projects\project\dev.project.com with > patternSet{ > includes:[**/*.rss, **/*.txt, **/*.atom, **/*.htm, > **/*.css, **/*.js] > excludes: [**/*.gif, **/*.ico, **/*.jpg] } > [ftp] transferring > C:\home\app\projects\project\dev.project.com\Volumes\Volume10-01-04.htm > [ftp] File > C:\home\app\projects\project\dev.project.com\Volumes\Volume10-01-04.htm > > copied to xx.xx.xx.xx > [ftp] transferring > C:\home\app\projects\project\dev.project.com\Volumes\archivefull.htm > [ftp] File > C:\home\app\projects\project\dev.project.com\Volumes\archivefull.htm > > copied to xx.xx.xx.xx > [ftp] transferring > C:\home\app\projects\project\dev.project.com\Volumes\currentissue.txt > [ftp] File > C:\home\app\projects\project\dev.project.com\Volumes\currentissue.txt > > copied to xx.xx.xx.xx > [ftp] transferring > C:\home\app\projects\project\dev.project.com\Volumes\currentissue_email. htm > [ftp] disconnecting > > BUILD FAILED > C:\home\app\projects\project\project.xml:70: error > during FTP transfer: > java.net.SocketException: Connection reset > at > org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2014) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at > org.apache.tools.ant.Task.perform(Task.java:364) > at > org.apache.tools.ant.Target.execute(Target.java:341) > at > org.apache.tools.ant.Target.performTasks(Target.java:369) > at > org.apache.tools.ant.Project.executeTarget(Project.java:1214) > at > org.apache.tools.ant.Project.executeTargets(Project.java:1062) > at > org.apache.tools.ant.Main.runBuild(Main.java:673) > at > org.apache.tools.ant.Main.startAnt(Main.java:188) > at > org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) > at > org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) > > Total time: 43 seconds > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]