[
https://issues.apache.org/jira/browse/VFS-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17449292#comment-17449292
]
Gary D. Gregory commented on VFS-775:
-------------------------------------
Hi [~akhil_surapuram],
I'm not sure how we can help unless you can provide a reproducer... in the form
of a unit test, or standalone Maven project. Whatever works for you.
TY.
> SFTP Uplaod is successfull but getting Exceptions
> -------------------------------------------------
>
> Key: VFS-775
> URL: https://issues.apache.org/jira/browse/VFS-775
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.4
> Reporter: Akhil Surapuram
> Priority: Major
>
> ache.commons.vfs2.FileSystemException: Could not determine the type of file
> "sftp://........". at
> org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1347)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.exists(AbstractFileObject.java:945)
> at
> org.apache.commons.vfs2.util.FileObjectUtils.exists(FileObjectUtils.java:45)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:285)
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to
> SFTP server at "sftp://2500009874_U:***@sftp.cdslindia.com/".
> at
> org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:151)
> at
> org.apache.commons.vfs2.provider.sftp.SftpFileObject.statSelf(SftpFileObject.java:114)
> at
> org.apache.commons.vfs2.provider.sftp.SftpFileObject.doGetType(SftpFileObject.java:76)
> at
> org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1341)
> ... 40 common frames omitted
> Caused by: com.jcraft.jsch.JSchException: session is down
> at com.jcraft.jsch.Session.openChannel(Session.java:861)
> at
> org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:124)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)