ftp task and Java 7

2011-08-03 Thread Joe Black

Until now, I am using Java 1.6.0_26 and apache ant 1.8.2 and commons-net 2.2 
and jakarta-oro-2.0.8 to use the ant task ftp, to download some files from a 
server using ID and password and using the file names.

I just upgraded from Java 1.6.0_26 to Java 1.7.0 and try to run the same 
program. Error encountered.


java.net.SocketException: Software cuased connection abort: socket write error

at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
..

Can anybody sugget anything? Any other alternatives, apart from going back to 
java 1.6.0?



Re: ant task ftp

2013-01-11 Thread Joe Black
Hi,

When I run it with the new version commons-net-3.2, there is no error. But even 
if there is a file on the ftp server, it was not downloaded. The process 
completed without raising error.
I even tried to run with debug and compare the two versions. The only 
difference is that with the old version, the file was downloaded.

I will put the commons-net-3.x.jar in the ant/lib directory. Just by swapping 
the 3.1 and 3.2 version, the result is different.

Thanks for the advice, but I think I am not good enough to dig the source 
codes. However, I will try more to see what I can find out.

with best regards,







 From: Antoine Levy Lambert 
To: Ant Users List ; Joe Black  
Sent: Thursday, January 10, 2013 11:00 AM
Subject: Re: ant task ftp
 
Hello Joe,

this looks like a bug or incompatibility between ant and this new version of 
commons-net.

It would be good if you can create a bug report in bugzilla ( 
http://issues.apache.org/bugzilla )

What would be great is if you could start digging in the source code of ant and 
commons-net to understand why the ftp does not work with commons-3.2.jar.

Does the build hang ? Is there an extra dependency which is missing ? 

Patches are welcome :-)

Regards,

Antoine
On Dec 26, 2012, at 12:38 AM, Joe Black wrote:

> Hi,
> 
>  
> I am using ant to download the files from the server
> using FTP.
>  
> Previously, I am using ant-1.8.4 together with
> commons-net-3.1.jar as follows:
>  
>  
> 
>  action=”get”
>   Remotedir=”/home/dir”
> newer=”true” timediffauto=”true”>
>    dir=”../data”>
>      name=”${file}*”/>
>   
> 
>  
>  
> It was running fine.
>  
> However, recently I changed the (commons-net.3.1.jar)
> with (commons-3.2.jar). 
> The above program did not work anymore.
> When I changed back to 3.1 version, it is still working.
> 
>  
> Any ideas?
> 
> 
> thanks and best regards,