Jeff Ma wrote:
When I connected a Unix SFTP Server, using sftp uri as:
  sftp://[ username[: [EMAIL PROTECTED] hostname[: port][ absolute-path]

If I forgot the "absolute-path", it will hang on forever from Linux, but
from Window XP is fine.
Hmmm, works here.
Could you please create a full thread dump: kill -3 pid-of-jvm

Are you really sure it hangs, or is it simply that your main method wouldnt end. It looks like jsch uses a thread which is not a daemon and thus the jvm cant shutdown. To workaround this you can call: ((StandardFileSystemManager) VFS.getManager()).close();

SFtpFileSystemConfigBuilder.getInstance().setUserDirAsStartingDir(opts,
true);

So I can go to other directory, is there a way to get around this?
Sorry, currently not, but please open a ticket at http://issues.apache.org/bugzilla/ with this as enhancement, I'll see what I can do after the release.


---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to