commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Ashpole (JIRA)" <>
Subject [jira] Created: (VFS-77) VFS cannot determine file type of root for FTP, prevents listing of children at root
Date Wed, 09 Aug 2006 03:20:14 GMT
VFS cannot determine file type of root for FTP, prevents listing of children at root

                 Key: VFS-77
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: Nightly Builds
         Environment: Windows, Eclipse, Java 1.5
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, throws
the below exception for the given, valid FTP site.  Please let me know if this issue can be

        FileSystemManager fsManager = VFS.getManager();
        FileObject f = fsManager.resolveFile("");
        FileObject[] children = f.getChildren();  // exception thrown here
        System.out.println("Children of "+f.getName().getURI());
        for(int i = 0; i<children.length; i++)

Exception in thread "main" org.apache.commons.vfs.FileSystemException: Could not determine
the type of file "".
	at org.apache.commons.vfs.provider.AbstractFileObject.attach(
	at org.apache.commons.vfs.provider.AbstractFileObject.getType(
	at org.apache.commons.vfs.provider.AbstractFileObject.getChildren(
	at com.bashpole.reflectorGadget.reflectionGroup.Ftp.test(
	at com.bashpole.reflectorGadget.reflectionGroup.Ftp.main(
Caused by: org.apache.commons.vfs.FileSystemException: Object didnt extend from AbstractFileObject.
Object "{0}"
	at org.apache.commons.vfs.util.FileObjectUtils.getAbstractFileObject(
	at org.apache.commons.vfs.provider.ftp.FtpFileObject.getInfo(
	at org.apache.commons.vfs.provider.ftp.FtpFileObject.doAttach(
	at org.apache.commons.vfs.provider.AbstractFileObject.attach(
	... 4 more

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message