Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 84152 invoked from network); 12 Mar 2008 21:06:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 21:06:18 -0000 Received: (qmail 65623 invoked by uid 500); 12 Mar 2008 21:06:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 65564 invoked by uid 500); 12 Mar 2008 21:06:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 65555 invoked by uid 99); 12 Mar 2008 21:06:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 14:06:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 21:05:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47757234C094 for ; Wed, 12 Mar 2008 14:04:46 -0700 (PDT) Message-ID: <1936371691.1205355886291.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 14:04:46 -0700 (PDT) From: "Sebb (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (NET-169) Cannot return files with listNames() function In-Reply-To: <12083289.1188406591288.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NET-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578017#action_12578017 ] Sebb commented on NET-169: -------------------------- Also applied to trunk (version 1.5) in r636508 > Cannot return files with listNames() function > --------------------------------------------- > > Key: NET-169 > URL: https://issues.apache.org/jira/browse/NET-169 > Project: Commons Net > Issue Type: Bug > Affects Versions: 1.4 > Environment: Windows, Eclipse > Reporter: burak ulutoprak > Fix For: 2.0 > > > Hi, > I am connecting to an ftp server with my username and password. When I call ftpClient.listNames(); it returns 0 length string array although i am very sure that there are files inside. > I also know that when I changed the ftp server to another one this function works. So I am assuming the server that I connected has a weird ftp server. When I called the function ftpClient.getSystemName() it returns UNKNOWN Type: L8. > If I call ftpClient.listNames I got this exception > org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: UNKNOWN Type: L8 > at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:125) > at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2362) > at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2145) > at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2192) > I have to get the filenames from the server, so how can I solve the problem. > Thanks for the helps. > Burak Ulutoprak -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.