commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tahir Akhtar" <ta...@spectrum-tech.com>
Subject RE: FTPClient works on Windows, not on FC4
Date Tue, 20 Jun 2006 13:08:31 GMT
Rizwan,
I haven't ever used the FTP client directly. I think you should state your
case more elaborately to elicit a response from the experts on the list. 

Something like below:
<sample>
Its working when
Client running on: Windows
Server running on: Windows
Server Application: IIS FTP

Its *Not* working when
Client running on: Windows
Server running on: FC 4
Server Application: ftpd

Any other related information like logs, exceptions etc
</sample>

Regards,
Tahir
-----Original Message-----
From: Rizwan Merchant [mailto:rizwan.merchant@sysconet.ca] 
Sent: Tuesday, June 20, 2006 5:57 PM
To: Jakarta Commons Users List
Subject: Re: FTPClient works on Windows, not on FC4


Hi Tahir,
I think the permissions are ok...the problem occurs even before the 
FTPClient tries to "get" the files. As I mentioned, when the 
"listFiles()" method is invoked on the directory, I get back 0 files in 
the FTPFile[ ] (although there are 8 files in the directory). Code 
snippet shown below...

Thanks,
-Riz.

            ftpClient.changeWorkingDirectory(OUTGOING_FOLDER);
            ftpClient.setFileType(FTP.BINARY_FILE_TYPE);

            FTPFile[] files = ftpClient.listFiles();
            logger.debug("Number of files in dir: " + files.length); 
//this outputs the value 0



Tahir Akhtar wrote:
> You can check if the [tomcat] user on linux box has correct file system
> permissions.
>
> -----Original Message-----
> From: Rizwan Merchant [mailto:rizwan.merchant@sysconet.ca] 
> Sent: Tuesday, June 20, 2006 9:11 AM
> To: commons-user@jakarta.apache.org
> Subject: FTPClient works on Windows, not on FC4
>
> Hi,
> I have an application that uses the FTPClient class to connect to a 
> server and download some files. This application is being developed on a 
> Windows box and it works fine from there.
>
> But when I port the application to a Fedora Core 4 env, it seems to not 
> work. FTPClient lets the application log in and move around in the 
> directory structure, but when the listFiles() command is invoked, the 
> length of the array is 0 (ie as if there are no files in the directory). 
> I am certain there are files in that directory (and it shows when 
> running the application on a Windows env).
>
> Could anyone tell me what the problem could be here??
> Thanks,
> -Riz.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>   


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

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 6/19/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.1/369 - Release Date: 6/19/2006
 


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


Mime
View raw message