tomaswolf commented on issue #721: URL: https://github.com/apache/mina-sshd/issues/721#issuecomment-2790123882
A plain Java reproducer is this: ``` import java.net.URI; import java.nio.file.Paths; import org.junit.jupiter.api.Test; class JustStartTest { @Test void justStart() { try { Paths.get(new URI("foo", "//bar", null)); } catch (Exception e) { e.printStackTrace(); // Set a breakpoint here to see the threads } } } ``` `Paths.get(URI)` loads all available providers; if the service registration for the SftpFileSystemProvider is on the classpath, it'll also instantiate that one. There are several things in the code that do look a bit strange in the implementation of SftpFileSystemProvider or SftpFileSystem. A lot of things are initialized way too early, the SshClient being only one of them. Might take a while to fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org