I am using Rebex library version Rebex Components 2017 R6.3 and I also tried by using 2016 R2.2 version of Rebex. I am getting this generic exception while transferring file using SFTP connection to SFTP server. If the file to be transferred is greater than 1 MB then the file is truncated during this transfer and the following exception is thrown :
Rebex.Net.SftpException: Failure; java.lang.Exception.
at Rebex.Net.JBM.AZ(PD N, Type M)
at Rebex.Net.JBM.BE(UInt32 N, JJM M)
at Rebex.Net.Sftp.MIE(BPY N, JJM M, String U, Stream I, Int64 Q, Int64 L, ME O)
at Rebex.Net.Sftp.LUE(BPY N, String M, Stream U, Int64 I, Int64 Q, ME L)
at Rebex.Net.Sftp.PutFile(Stream sourceStream, String remotePath, Int64 remoteOffset, Int64 length)
at SFTPUtility.Program.TransmitStream(Stream source, Sftp sftp, Int32 length, Int32 bytesPerSec, String targetFile) in C:\IC1830\Code\C#\Tools\SFTPUtility\SFTPUtility\Program.cs:line 64
at SFTPUtility.Program.Main(String[] args) in C:\IC1830\Code\C#\Tools\SFTPUtility\SFTPUtility\Program.cs:line 42