FTP issue (using org.apache.commons.net.ftp)

Hi,

I am using org.apache.commons.net.ftp and have the following in my path:

commons-net-1.4.1.jar

jakarta-oro-2.0.8.jar

My FTP server is on unix. Here is what I get when giving a command

quote SYST

on a windows command promt after connecting to the FTP Server output

215 ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)

I have an application that downloads the files from the above server, but I keep getting the following errors>

2006-11-09 14:23:50,339 FATAL com.mypk.tsd.ftp.FtpConnect.getDataFile(FtpConnect.java:138)-{Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)}

org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)

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)

at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)

at com.mypk.tsd.ftp.FtpConnect.getDataFile(FtpConnect.java:92)

at com.mypk.tsd.handler.FileStorage.process(FileStorage.java:42)

at com.mypk.tsd.ws.impl.FileReaderImpl.readFile(FileReaderImpl.java:45)

at com.mypk.tsd.ws.impl.FileReaderImpl.main(FileReaderImpl.java:104)

2006-11-09 14:23:50,339 FATAL com.mypk.tsd.handler.FileStorage.process(FileStorage.java:87)-{Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313); nested exception is:

org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)}

com.mypk.tsd.common.SystemException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313); nested exception is:

org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)

at com.mypk.tsd.ftp.FtpConnect.getDataFile(FtpConnect.java:139)

at com.mypk.tsd.handler.FileStorage.process(FileStorage.java:42)

at com.mypk.tsd.ws.impl.FileReaderImpl.readFile(FileReaderImpl.java:45)

at com.mypk.tsd.ws.impl.FileReaderImpl.main(FileReaderImpl.java:104)

Caused by: org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)

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)

at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)

at com.mypk.tsd.ftp.FtpConnect.getDataFile(FtpConnect.java:92)

... 3 more

2006-11-09 14:23:50,349 INFO com.mypk.tsd.ws.impl.FileReaderImpl.readFile(FileReaderImpl.java:46)-{Request Processed Successfully!}

Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313); nested exception is:

org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: ClearPath LX Series FTP version 52.150.015 (MCP version 52.189.8313)

Any idea what is wrong and how to fix it. Giving commands on command promt in windows works fine download, upload files. But when I use it through my program it gives errors. How else can get the files throgh java from FTP Server any other open source libraries available.

Thanks

[4026 byte] By [whitesoxa] at [2007-10-3 9:28:07]
# 1
Any ideas?
whitesox12a at 2007-7-15 4:42:28 > top of Java-index,Java Essentials,Java Programming...