commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Bäckstrand (JIRA) <j...@apache.org>
Subject [jira] [Updated] (VFS-351) Small patch to not swallow SFTP exception from JSCH
Date Wed, 25 May 2011 13:07:47 GMT

     [ https://issues.apache.org/jira/browse/VFS-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Bäckstrand updated VFS-351:
--------------------------------

    Attachment: vfscdpatch.diff

One-line patch

> Small patch to not swallow SFTP exception from JSCH 
> ----------------------------------------------------
>
>                 Key: VFS-351
>                 URL: https://issues.apache.org/jira/browse/VFS-351
>             Project: Commons VFS
>          Issue Type: Bug
>            Reporter: John Bäckstrand
>            Priority: Trivial
>              Labels: sftp
>         Attachments: vfscdpatch.diff
>
>
> A customer had a stacktrace where the end of it looked something like this:
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not determine the type
of file "***".
>         at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:506)
>         at org.apache.commons.vfs2.provider.sftp.SftpFileObject.refresh(SftpFileObject.java:92)
>         ... 27 more
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not change to work directory
"/".
>         at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:144)
>         at org.apache.commons.vfs2.provider.sftp.SftpFileObject.statSelf(SftpFileObject.java:152)
>         at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doGetType(SftpFileObject.java:115)
>         at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:497)
> But SftpFileSystem actually got an exception from JSch that it did not set as cause for
the newly created exception, making debugging harder.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message