You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ja...@rzf.fin-nrw.de on 2004/10/13 16:09:03 UTC
AW: cvs commit: ant/src/main/org/apache/tools/ant/types defaults.
properties
>ApacheCon Europe in Stuttgart
Cool - first time I heard from that.
Do you have more infos?
Jan
Re: cvs commit: ant/src/main/org/apache/tools/ant/types defaults.
properties
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 13 Oct 2004, Jan Materne <Ja...@rzf.fin-nrw.de> wrote:
> Cool - first time I heard from that.
> Do you have more infos?
rumors, only rumors.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: CopyStreamException on FTP task
Posted by Laconia Data Systems <we...@laconiadatasystems.com>.
Rob
Can you mkdir (create s directory) with those apps with that same
username/password?
Best,
Martin-
----- Original Message -----
From: "Robert Koberg" <ro...@koberg.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Thursday, October 14, 2004 6:01 AM
Subject: Re: CopyStreamException on FTP task
> Laconia Data Systems wrote:
>
> > Robert
> > Looks like a file access permission problem
> > It appears that the FPT user does *not* have mkdir or *create*
capability
> > Can you change the FTP user's access capabilities to create any/all
files
> > and folders?
>
> Hi and thanks,
>
> The only thing that would make me believe (FTP is the only access I have
> to the machine) that the user does have permissions is that we can use
> apps like cuteFTP or Dreamweaver -- with the same user/password --
> everything works.
>
> -Rob
>
>
>
> > Martin-
> > ----- Original Message -----
> > From: "Robert Koberg" <ro...@koberg.com>
> > To: <us...@ant.apache.org>
> > Sent: Wednesday, October 13, 2004 2:05 PM
> > Subject: CopyStreamException on FTP task
> >
> >
> >
> >>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: user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail: user-help@ant.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: CopyStreamException on FTP task
Posted by Robert Koberg <ro...@koberg.com>.
Laconia Data Systems wrote:
> Robert
> Looks like a file access permission problem
> It appears that the FPT user does *not* have mkdir or *create* capability
> Can you change the FTP user's access capabilities to create any/all files
> and folders?
Hi and thanks,
The only thing that would make me believe (FTP is the only access I have
to the machine) that the user does have permissions is that we can use
apps like cuteFTP or Dreamweaver -- with the same user/password --
everything works.
-Rob
> Martin-
> ----- Original Message -----
> From: "Robert Koberg" <ro...@koberg.com>
> To: <us...@ant.apache.org>
> Sent: Wednesday, October 13, 2004 2:05 PM
> Subject: CopyStreamException on FTP task
>
>
>
>>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: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: CopyStreamException on FTP task
Posted by Laconia Data Systems <we...@laconiadatasystems.com>.
Robert
Looks like a file access permission problem
It appears that the FPT user does *not* have mkdir or *create* capability
Can you change the FTP user's access capabilities to create any/all files
and folders?
Martin-
----- Original Message -----
From: "Robert Koberg" <ro...@koberg.com>
To: <us...@ant.apache.org>
Sent: Wednesday, October 13, 2004 2:05 PM
Subject: CopyStreamException on FTP task
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
should have been SocketException -> Re: CopyStreamException on FTP
task
Posted by Robert Koberg <ro...@koberg.com>.
suma.bhat@gsa.gov wrote:
> Robert,
>
> I had trouble with the ftp task a while ago.
> In my case however, I could use the scp task instead,
> which works very well.
>
> So if you should try to use the ssh copy (scp) task,
> your environment permitting of course.
Yea :( I do that with my own servers, but the client does not have a ssh
server on their windows machine.
thanks though,
-Rob
>
>
> Eg:
> <target name="sshjsp">
> <echo message="Copying jsp fles."/>
> <scp todir="${username}:${password}@${host}:${imPrjDir}"
> trust="true">
> <fileset refid="jsp.files"/>
> </scp>
> </target>
>
> Thanks,
> Suma
>
>
>
>
>
>
>
> "Robert Koberg" <ro...@koberg.com>
> 10/13/2004 02:05 PM
> Please respond to "Ant Users List"
>
> To: user@ant.apache.org
> cc: (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
> Subject: CopyStreamException on FTP task
>
>
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: CopyStreamException on FTP task
Posted by su...@gsa.gov.
Robert,
I had trouble with the ftp task a while ago.
In my case however, I could use the scp task instead,
which works very well.
So if you should try to use the ssh copy (scp) task,
your environment permitting of course.
Eg:
<target name="sshjsp">
<echo message="Copying jsp fles."/>
<scp todir="${username}:${password}@${host}:${imPrjDir}"
trust="true">
<fileset refid="jsp.files"/>
</scp>
</target>
Thanks,
Suma
"Robert Koberg" <ro...@koberg.com>
10/13/2004 02:05 PM
Please respond to "Ant Users List"
To: user@ant.apache.org
cc: (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
Subject: CopyStreamException on FTP task
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: CopyStreamException on FTP task
Posted by Ivan Ivanov <ra...@yahoo.com>.
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 <ro...@koberg.com> 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:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
>
>
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
CopyStreamException on FTP task
Posted by Robert Koberg <ro...@koberg.com>.
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org