ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suma.b...@gsa.gov
Subject Re: AW: AW: FTP task
Date Mon, 26 Jul 2004 15:20:42 GMT
Hi,

I used the <scp> task instead and it has been working flawlessly so far.
I do think the ftp problem might have something to do with the server 
configuration.

Thanks for all your input.

-Suma







"Steve Cohen" <scohen@javactivity.org>
07/25/2004 10:50 PM
Please respond to "Ant Users List"
 
        To:     "Ant Users List" <user@ant.apache.org>
        cc:     (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
        Subject:        Re: AW: AW: FTP task


Jan, I don't think these line numbers correspond to the version of Ant 
that 
Suma reports using  (1.6.1) 

In that version, revision 1.52.2.7 (tag ANT_161) the line numbers are:

FTP.java:2019:   } catch (IOException ex) {
FTP.java:2020:   throw new BuildException("error during FTP transfer: " + 
ex);
FTP.java:2021:    } finally {

This makes a little more sense than the other scenario, which I agree is 
basically impossible.  I suspect that the root cause has something to do 
with 
the server configuration rather than with any specific problem with either 

the Ant task or the underlying commons-net code.

On Friday 23 July 2004 9:49 am, Jan.Materne@rzf.fin-nrw.de wrote:
> Mmmh
>
> FTP.java:1035:     public void execute() throws BuildException {
> FTP.java:2015:         } finally {
> FTP.java:2016:             if (ftp != null && ftp.isConnected()) {
> FTP.java:2017:                 try {
> FTP.java:2018:                     log("disconnecting",
> Project.MSG_VERBOSE);
> FTP.java:2019:                     ftp.logout();
> FTP.java:2020:                     ftp.disconnect();
> FTP.java:2021:                 } catch (IOException ex) {
> FTP.java:2022:                     // ignore it
> FTP.java:2023:                 }
> FTP.java:2024:             }
> FTP.java:2025:         }
> FTP.java:2026:     }
>
> the log sais, that the ftp:disconnect() would cause the error, but
> SocketException
> extends IOException and should therefore be catched and not reported ...
>
> Exception message "Connection reset".
>
> I don´t know any - maybe anotherone?
> But for short: it seems that you can ignore that message. Disadvantage 
is
> that it
> breaks your build. Maybe you can surround that with AntContribs 
<trycatch>.
>
>
> Jan
>
> > -----Ursprüngliche Nachricht-----
> > Von: suma.bhat@gsa.gov [mailto:suma.bhat@gsa.gov]
> > Gesendet am: Freitag, 23. Juli 2004 16:30
> > An: Ant Users List
> > Betreff: Re: AW: FTP task
> >
> > Below is the verbose output.
> > Also the task itself, incase I'm missing something.
> >
> > <target name="ftpAll">
> >         <ftp server="eaguxx" userid="sbhat" password="******"
> > remotedir="incoming" depends="yes">
> >            <fileset refid="web.inf"/>
> >         </ftp>
> > </target>
> >
> > -Suma
> >
> > Apache Ant version 1.6.1 compiled on February 12 2004
> > Buildfile: build.xml
> > Detected Java version: 1.4 in: C:\j2sdk1.4.2_04\jre
> > Detected OS: Windows XP
> > parsing buildfile C:\ReportsRewite\build.xml with URI =
> > file:///C:/ReportsRewite
> > /build.xml
> > Project base dir set to: C:\ReportsRewite
> > Build sequence for target `ftpAll' is [ftpAll]
> > Complete build sequence is [ clean,
> > build,ftpAll ]
> >
> > ftpAll:
> >       [ftp] Opening FTP connection to eagu39
> >       [ftp] connected
> >       [ftp] logging in to FTP server
> >       [ftp] login succeeded
> >       [ftp] changing the remote directory
> >       [ftp] sending files
> >       [ftp] checking date for WEB-INF/database.tld
> >       [ftp] disconnecting
> >
> > BUILD FAILED
> > C:\ReportsRewite\build.xml:73: error during FTP transfer:
> > java.net.SocketExcepti
> > on: Connection reset
> >         at
> > org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2020)
> >
> >         at
> > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:301)
> >         at org.apache.tools.ant.Target.performTasks(Target.java:328)
> >         at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1215)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1063)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:632)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:183)
> >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
> >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
> >
> >
> >
> >
> >
> >
> >
> > Jan.Materne@rzf.fin-nrw.de
> > 07/23/2004 10:15 AM
> > Please respond to "Ant Users List"
> >
> >         To:     user@ant.apache.org
> >         cc:     (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
> >         Subject:        AW: FTP task
> >
> >
> > Can you send the relevant output of the -verbose output?
> > Just an idea: maybe the number of users of the ftp server is
> > excited :)
> >
> > Jan
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: suma.bhat@gsa.gov [mailto:suma.bhat@gsa.gov]
> > > Gesendet am: Freitag, 23. Juli 2004 15:50
> > > An: Ant Users List
> > > Betreff: RE: FTP task
> > >
> > > Thanks Luis for the fast reply.
> > > I do have the the two jars that you mentioned in ant's  lib
> >
> > directory.
> >
> > > roughly 2/5 times I get a SocketException whereas the other 3
> > > times it
> > > goes through fine.
> > >
> > >
> > > Rgds,
> > > Suma
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > luis.conelly@ge.com
> > > 07/23/2004 09:48 AM
> > > Please respond to "Ant Users List"
> > >
> > >         To:     user@ant.apache.org
> > >         cc:     (bcc: Suma Bhat/CONTRACTOR/FIB/CO/GSA/GOV)
> > >         Subject:        RE: FTP task
> > >
> > >
> > > Could you be more specific?
> > >
> > > Sometimes, you need to add the required jars for FTP task
> > > (jakarta oro,
> > > jakarta commons-net); you can take a look around at
> > > http://ant.apache.org/manual/install.html#librarydependencies
> > > for more
> > > info
> > > on the required jars and where to find them
> > >
> > > Also, you should be aware about FTP going through proxies (see
> > > http://ant.apache.org/manual/OptionalTasks/ftp.html) limitations.
> > >
> > > Regards
> > > Luis
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: suma.bhat@gsa.gov [mailto:suma.bhat@gsa.gov]
> > > Sent: Viernes, 23 de Julio de 2004 08:33 a.m.
> > > To: user@ant.apache.org
> > > Subject: FTP task
> > >
> > >
> > > Hi,
> > >
> > > I'm relatively new to the Ant scene, I had a question about
> > > the ftp task.
> > > It is quite inconsistent and throws SocketException every now
> > > and then.
> > >
> > > Anybody know the reason for this ?
> > > Suggestions for an alternate solution ?
> > >
> > > Thanks,
> > > Suma
> >
> > ---------------------------------------------------------------------
> >
> > > 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




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message