Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 71805 invoked from network); 9 Aug 2006 05:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 05:24:00 -0000 Received: (qmail 82129 invoked by uid 500); 9 Aug 2006 05:23:59 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 82038 invoked by uid 500); 9 Aug 2006 05:23:59 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 82027 invoked by uid 99); 9 Aug 2006 05:23:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 22:23:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 22:23:58 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0576F41000B for ; Wed, 9 Aug 2006 05:21:15 +0000 (GMT) Message-ID: <14039860.1155100875019.JavaMail.jira@brutus> Date: Tue, 8 Aug 2006 22:21:15 -0700 (PDT) From: "Mario Ivankovits (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (VFS-77) VFS cannot determine file type of root for FTP, prevents listing of children at root In-Reply-To: <29046667.1155093614255.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/VFS-77?page=comments#action_12426836 ] Mario Ivankovits commented on VFS-77: ------------------------------------- Could you please try the next nightly, then the message "Object didnt extend from AbstractFileObject. Object "{0}" " should show the correct object class name instead of {0}. Though, I think it will be "null" which means that you have no permission to list the root directory of your ftp server - is this true? If so, this is a enhancement which needs to be adressed. Ciao, Mario > VFS cannot determine file type of root for FTP, prevents listing of children at root > ------------------------------------------------------------------------------------ > > Key: VFS-77 > URL: http://issues.apache.org/jira/browse/VFS-77 > Project: Commons VFS > Issue Type: Bug > Affects Versions: Nightly Builds > Environment: Windows, Eclipse, Java 1.5 > commons-vfs-20060808.zip > commons-net-1.4.1.jar, etc. (not sure one of the dependencies is the real problem) > Reporter: Ben Ashpole > > The following example, adapted from http://jakarta.apache.org/commons/vfs/api.html, throws the below exception for the given, valid FTP site. Please let me know if this issue can be replicated! > FileSystemManager fsManager = VFS.getManager(); > FileObject f = fsManager.resolveFile("ftp://ftp.uspto.gov/"); > FileObject[] children = f.getChildren(); // exception thrown here > System.out.println("Children of "+f.getName().getURI()); > for(int i = 0; i { > System.out.println(children[i].getName().getBaseName()); > } > Exception in thread "main" org.apache.commons.vfs.FileSystemException: Could not determine the type of file "ftp://ftp.uspto.gov/". > at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1281) > at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:410) > at org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractFileObject.java:523) > at com.bashpole.reflectorGadget.reflectionGroup.Ftp.test(Ftp.java:55) > at com.bashpole.reflectorGadget.reflectionGroup.Ftp.main(Ftp.java:24) > Caused by: org.apache.commons.vfs.FileSystemException: Object didnt extend from AbstractFileObject. Object "{0}" > at org.apache.commons.vfs.util.FileObjectUtils.getAbstractFileObject(FileObjectUtils.java:50) > at org.apache.commons.vfs.provider.ftp.FtpFileObject.getInfo(FtpFileObject.java:174) > at org.apache.commons.vfs.provider.ftp.FtpFileObject.doAttach(FtpFileObject.java:166) > at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1267) > ... 4 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org