Details
-
Bug
-
Status: Reopened
-
Critical
-
Resolution: Unresolved
-
2.0
-
None
-
None
-
Java 1.7.0_13 64 Bit
Description
I access files from an SFTP server and accesm them roughly via
-----------------
vfs.resolveFile(uri, opts);
...
vfs.resolveFile(cwd, directory);
...
cwd.getChildren();
...
vfs.resolveFile(fn);
...
((DefaultFileSystemManager) vfs).close();
--------------------------
If the same code runs a second time, the first call to resolveFile() throws
Unknown scheme "sftp" in URI "sftp://..."
I tried
vfs.closeFileSystem(children[0].getFileSystem());
like stated in http://wiki.apache.org/commons/SimpleSftpFileDownload, but this doesn't help!