Skip to Main Content

Java Programming

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!

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

807607Nov 9 2006 — edited Nov 13 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2006
Added on Nov 9 2006
1 comment
570 views