You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Steve Loughran <st...@apache.org> on 2006/03/01 12:53:17 UTC

Re: Ant FTP Hangs -- Additional Info

JWM wrote:
> Just trying to change things to see if it fixes it or if it caused the
> symptoms to change to perhaps something more obvious, I changed the ant task
> to use passive ftp.  Still fails randomly after a while each run.  But now I
> get this error message each time.
> 
> Can someone interpret this?  What address?  The IP and/or port?  It almost
> looks like multithread collisions.  I'm not running any other instances of
> this at the same time
> 



> 
> BUILD FAILED
> C:\backup\ftp\build.xml:62: error during FTP transfer:
> java.net.BindException: Address already in use: connect
-----
public class BindException extends SocketException

Signals that an error occurred while attempting to bind a socket to a 
local address and port. Typically, the port is in use, or the requested 
local address could not be assigned.
---

something else may be listening, the question is: which port. It may 
just be an accidental clash.

try passive="true"

I've just tweaked <ftp> in the repository to not strip out so much of 
the caught exception, so a -v run will include more diagnostics. Check 
it out and rebuild ant if you want to do more debugging.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org