[jira] [Updated] (VFS-634) DefaultFileSystemManager.close() throw FileSystemException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Updated] (VFS-634) DefaultFileSystemManager.close() throw FileSystemException

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/VFS-634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilian HALOUIN updated VFS-634:
-------------------------------
    Description:
Hi,
We face an issue when we use a DefaultFileSystemManager.
With this example
{code:java}
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemException;
import org.apache.commons.vfs2.Selectors;
import org.apache.commons.vfs2.VFS;
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;

/**
 * @author GHALOUIN
 *
 */
public class TestVFS {

    /**
     * @param args
     * @throws FileSystemException
     */
    public static void main(final String[] args) throws FileSystemException {
        final DefaultFileSystemManager vfsManager = (DefaultFileSystemManager) VFS.getManager();
        final FileObject tempDir = vfsManager.resolveFile("tmp://simulation");

        final FileObject fileSrc = vfsManager.resolveFile("C:/toto.txt");
        tempDir.resolveFile("toto").copyFrom(fileSrc, Selectors.SELECT_SELF);

        vfsManager.close();
    }

}
{code}

  was:
Hi,
We face an issue when we use a DefaultFileSystemManager.
With this example


> DefaultFileSystemManager.close() throw FileSystemException
> ----------------------------------------------------------
>
>                 Key: VFS-634
>                 URL: https://issues.apache.org/jira/browse/VFS-634
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: windows
>            Reporter: Gilian HALOUIN
>
> Hi,
> We face an issue when we use a DefaultFileSystemManager.
> With this example
> {code:java}
> import org.apache.commons.vfs2.FileObject;
> import org.apache.commons.vfs2.FileSystemException;
> import org.apache.commons.vfs2.Selectors;
> import org.apache.commons.vfs2.VFS;
> import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
> /**
>  * @author GHALOUIN
>  *
>  */
> public class TestVFS {
>     /**
>      * @param args
>      * @throws FileSystemException
>      */
>     public static void main(final String[] args) throws FileSystemException {
>         final DefaultFileSystemManager vfsManager = (DefaultFileSystemManager) VFS.getManager();
>         final FileObject tempDir = vfsManager.resolveFile("tmp://simulation");
>         final FileObject fileSrc = vfsManager.resolveFile("C:/toto.txt");
>         tempDir.resolveFile("toto").copyFrom(fileSrc, Selectors.SELECT_SELF);
>         vfsManager.close();
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...