Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 80138 invoked by uid 500); 2 Apr 2001 10:02:32 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 80114 invoked from network); 2 Apr 2001 10:02:28 -0000 Message-ID: <008801c0bb5c$4c182510$012a2a0a@seessle.de> From: "Nico Seessle" To: References: <753866CAB183D211883F0090271F46C20589D89B@COW> Subject: Re: ftp task throwing ArrayIndexOutOfBoundsException Date: Mon, 2 Apr 2001 12:04:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ----- Original Message ----- From: "Mark Hewitt" To: Sent: Monday, April 02, 2001 10:38 AM Subject: RE: ftp task throwing ArrayIndexOutOfBoundsException > Nico, > > The ftp task works correctly if I do it unconditionally - ie, > depends="no". > > The manual ftp results you requested are: > > ftp> ls notThere.jar > 200 PORT command successful. > 150 ASCII data connection for /bin/ls (194.194.22.35,59321) (0 bytes). > notThere.jar: No such file or directory > 226 ASCII Transfer complete. > remote: notThere.jar > 41 bytes received in 0.018 seconds (2.20 Kbytes/s) > ftp> Hm. It should have replied with 550 No such file or directory, shouldn't it? > Does that help? Hmm.. the file you are trying to upload are all available on the server? It seems that the error you posted may occur if the server replies with something that means "OK", but it isn't. Ant (or NetComponents) then tries to get the last-modified date of the remote-file and can't get that if the file is not there. Do you have access to a java-compiler? If yes you may want to try changing line 547 in FTP.java from "if (files == null)" to "if (files == null || files.length == 0)" and try again. If that helps you please tell me and I will change that in CVS. Nico