Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connect FTPClient to a IBM 4690 OS Server.

843790Apr 17 2008 — edited May 5 2008
Hi,

I'm facing some problem connectiong to a IBM 4690 OS Server with the FTPClient class from the commons-net-1.4.1 library. It seems it can't read the folder on the server. The problem is that using the FTP client from Internet Explorer is works perfectly.

Here is my code (kind of hardcoded but it's only to test).
	    FTPFile[] files = null;

		try {
			files = listFiles(remoteFolder);
		} catch (ParserInitializationException e) {
			
			FTPListParseEngine engine = initiateListParsing("org.apache.commons.net.ftp.parser.EnterpriseUnixFTPEntryParser", remoteFolder);

			if (!engine.hasNext()) {
				throw new SystemException("No file found.");
			}
		}
Here is the ParserInitializationException that it throws:
org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: OS 4690 operating system
	at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:118)
	at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
	at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
...
I've tried to use many of the FTPFileListParser available but without success.

Anyone has an idea of how could I handle the problem? Where could I find a Parser that would works?

Thanks,


MJalbert
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2008
Added on Apr 17 2008
3 comments
3,050 views