Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

Yogi

Posts

3

Joined

Tue Oct 26, 2010 10:15 pm

edtftpj-pro-4.1.0 : dirDetails() on AS400 FTPServer Problem.

by Yogi » Tue Apr 03, 2012 4:43 pm

I am using dirDetails() method to get the dirDetails from an AS400 FTPServer.
But the retuning the result in the FTPFile[] files array lenght as 0.

List method is working fine and displays the data.

//Example Code.

public static void getDetails(String host,String user,String pwd) throws
IOException,FTPException,ParseException
{
FTPClient client = new FTPClient();

client.setRemoteHost(host);
client.setConnectMode(FTPConnectMode.PASV);
client.setControlEncoding("UTF-8");
client.connect();
client.login(user, pwd);
client.setType(FTPTransferType.BINARY);

// list method works fine.
String list = client.list("/");
System.out.println(list);

// Doen't work :
// Exception while Debugging : org.eclipse.debug.core.DebugException:
//com.sun.jdi.ClassNotLoadedException:
//Type has not been loaded occurred while retrieving component type of array.
// Length is 0.
FTPFile[] files=client.dirDetails("/");
System.out.println(files.length);
}
}

Regrads,
Yogi.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: edtftpj-pro-4.1.0 : dirDetails() on AS400 FTPServer Prob

by support2 » Tue Apr 03, 2012 7:02 pm

First thing to do is enable logging at the DEBUG level and post the relevant bit of the log file.

Who is online

Users browsing this forum: No registered users and 130 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign