• Post Reply Bookmark Topic Watch Topic
  • New Topic

ParserInitializationException  RSS feed

 
Sree Kumari
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jakarta-commons-net ftp .I am able to establish a connection with ftp server.but while parsing

FTPListParseEngine engine =
m_client.initiateListParsing
("org.apache.commons.net.ftp.parser.RegexFTPFileEntryParserImpl","/home");
it shows ParserIntializationException
Auto detection parser is not working
Can anybody suggest a solution
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Q: On which server operating systems is FTPClient able to bring back a parsed listing?

A: Currently parsers have been written for UNIX, NT, OS/2 and VMS and OS400. These can be autodetected by the code without being specified. Additionally, the code correctly handles cases where NT or OS400 servers have been configured to look like unix servers. There is also a means of specifying a user-written parser by class name. All of these parsers return FTPFile objects with as much information about the file as can be gathered from the listing.

If none of these is sufficient, FTPClient.listNames() may always be called. This retrieves just the file name without other information.

Jakarta-commons Net Frequently Asked Questions
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!