Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.
Sep 5, 2006
37
US
Hi,

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

Code:
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

Code:
quote SYST


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

Code:
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>>>>

Code:
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top