Thanks for responding:

here is some additional info might help you to reproduce the error, the 
client is in a unix sun machine, server is a linux machine, and 
compression is  [email protected], file is a binary file, the size is 
102400000. the same test if client run on window xp machine to linux does 
not fail. but client on linux and sun will fail. 
client machine info:  SunOS cesol10 5.10 Generic_142900-03 sun4u sparc 
SUNW,Sun-Fire-280R
server machine info: Linux cowboys.csg.stercomm.com 2.6.18-128.1.6.el5 #1 
SMP Tue Mar 24 12:05:57 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

the stack trace is below:

 4: java.lang.ArrayIndexOutOfBoundsException
        at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:577)
        at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:388)
        at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:291)
        at com.sterlingcommerce.sshclc.PutCommand.doStandard(Unknown 
Source)
        at com.sterlingcommerce.sshclc.PutCommand.doIt(Unknown Source)
        at com.sterlingcommerce.sshclc.CesshsftpMain.doCmd(Unknown Source)
        at com.sterlingcommerce.sshclc.CesshsftpMain.doIt(Unknown Source)
        at com.sterlingcommerce.sshclc.CesshsftpMain.doInput(Unknown 
Source)
        at com.sterlingcommerce.sshclc.CesshsftpMain.startSFTP(Unknown 
Source)
        at com.sterlingcommerce.sshclc.CesshsftpMain.main(Unknown Source)
        at Cesshsftp.main(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException
        at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:87)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at com.jcraft.jsch.IO.put(IO.java:60)
        at com.jcraft.jsch.Session._write(Session.java:1217)
        at com.jcraft.jsch.Session.write(Session.java:1184)
        at com.jcraft.jsch.ChannelSftp.sendWRITE(ChannelSftp.java:2073)
        at com.jcraft.jsch.ChannelSftp._put(ChannelSftp.java:536)
        ... 10 more

here is some info from the trace file:

2011/02/14 10:21:46 [INFO]  Jsch - Remote version string: 
SSH-2.0-OpenSSH_4.3^M
2011/02/14 10:21:46 [INFO]  Jsch - Local version string: 
SSH-2.0-JSCH-0.1.44^M
2011/02/14 10:21:46 [INFO]  Jsch - CheckCiphers: aes128-cbc^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_KEXINIT sent^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_KEXINIT received^M
2011/02/14 10:21:50 [INFO]  Jsch - kex: server->client aes128-cbc 
hmac-sha1 [email protected]^M
2011/02/14 10:21:50 [INFO]  Jsch - kex: client->server aes128-cbc 
hmac-sha1 [email protected]^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_KEXDH_INIT sent^M
2011/02/14 10:21:50 [INFO]  Jsch - expecting SSH_MSG_KEXDH_REPLY^M
2011/02/14 10:21:50 [INFO]  Jsch - ssh_rsa_verify: signature true^M
2011/02/14 10:21:50 [INFO]  Jsch - Host 'cowboys' is known and mathces the 
RSA host key^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_NEWKEYS sent^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_NEWKEYS received^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_SERVICE_REQUEST sent^M
2011/02/14 10:21:50 [INFO]  Jsch - SSH_MSG_SERVICE_ACCEPT received^M
2011/02/14 10:21:50 [INFO]  Jsch - Authentications that can continue: 
password^M
2011/02/14 10:21:50 [INFO]  Jsch - Next authentication method: password^M
2011/02/14 10:21:50 [DEBUG] UserAuthentication - in promptPassword^M
2011/02/14 10:21:54 [INFO]  Jsch - Authentication succeeded (password).^M

Thanks
Jean



From:   [email protected] (Atsuhiko Yamanaka)
To:     Jingran Xiao/Dallas/IBM@IBMUS
Cc:     [email protected], Daniel Engstrom/Dallas/IBM@IBMUS
Date:   02/11/2011 11:23 PM
Subject:        Re: [JSch-users] put large binary file with compression 
cause java.lang.ArrayIndexOutOfBoundsException, slow performance when 
doing get with compression



Hi,

   +-From: Jingran Xiao <[email protected]> --
   |_Date: Wed, 9 Feb 2011 09:17:43 -0600 ___
   |
   |We are using jsch 1.44 with jzlib-1.0.7. when doing a 'put' with a 
large 
   |binary file and compression on gets a 
   |'java.lang.ArrayIndexOutOfBoundsException'. A zero byte file is 
created on 
   |the server side but no data is transferred. (note, this only happens 
when 
   |the encryption is set to using AES128-cbc, and AES256-cbc, and 
AES192-cbc. 
   |using 3des does not cause exception)

I have not been able to reproduce that exception yet.
Could you show me the stacktrace of that AIOOBE?


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to