Hi,

I'm doing file transfer using the sftpSessionFactory(sftpoutbound channel adapter),
I would like to know if the exact root cause of failure of file transfer can be obtained.

For example:, this is the error message I'm seeing., this could be because of permission to write into the directory,invalid username,or password,or cannot create a directory.Though I'm having a printstacktrace,I'm not able to get the exact root cause of failure.
Please let me know how to achieve this.

Code:
Failed to transfer file [/tmp/PM15MinData/pm15.12-09-28-12-31-41-675.zip] from local working directory to remote FTP directory.
    error occurred in message handler [org.springframework.integration.file.remote.handler.FileTransferringMessageHandler#2]
    Failed to transfer file [/tmp/PM15MinData/pm15.12-09-28-12-31-41-675.zip] from local working directory to remote FTP directory.
thanks