You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "M.H. (Jira)" <ji...@apache.org> on 2023/03/29 08:04:00 UTC
[jira] [Commented] (VFS-454) FileSystemManager needs better lifecycle definition (SFTP: first access OK, second access: Unknown scheme)
[ https://issues.apache.org/jira/browse/VFS-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706266#comment-17706266 ]
M.H. commented on VFS-454:
--------------------------
It does not seem to have changed during the last 9 years ... i had to inspect therad dumps of our application and noticed hundreds of open jcraft sessions (which is used bei Apache VFS - we don't use jCraft API) and stumbled over this issue again. Is there any progress?
> FileSystemManager needs better lifecycle definition (SFTP: first access OK, second access: Unknown scheme)
> ----------------------------------------------------------------------------------------------------------
>
> Key: VFS-454
> URL: https://issues.apache.org/jira/browse/VFS-454
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Java 1.7.0_13 64 Bit
> Reporter: MH
> Assignee: Bernd Eckenfels
> Priority: Critical
>
> 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!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)