From: Atsuhiko Yamanaka <email@example.com>
Cc: firstname.lastname@example.org; email@example.com; firstname.lastname@example.org
Sent: Wednesday, February 16, 2011 9:17 AM
Subject: Re: [JSch-users] put large binary file with compression cause java.lang.ArrayIndexOutOfBoundsException, slow performance when doing get with compression
+-From: Nguyen Tran Vu Linh <email@example.com
|_Date: Mon, 14 Feb 2011 23:31:35 -0800 (PST) ___________
|Thank you for your update, I got the same exception as Xiao.
|In my case, file type is .pgp and its size >=100KBs with compression
|I downloaded http://www.jcraft.com/jsch/jsch-0.1.45-deflate.zip and
|apply to my application but exception still occurs.
Thanks to some file sent from Nguyen directly to me,
I could reproduce that problem. Please try
I guess that the problem will happen in sending deflated(compressed) data
with the packet compression.
You know that the deflation for deflated data will usually inflate data,
and jsch had not
cared for such a case.
In debugging this problem, we have found some bug in JZlib in such situations.
It will not cause the exception, and break data implicitly.
So we suggest you to stop the packet compress mode for a while.
We will working on it.
FYI, you can enable/disable the packet compression dynamically,
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.