sftp hanging on disconnect

[email protected]
Newsgroups gmane.comp.java.sshtools.user
Message-ID <OF7DA799B7.4452DFF6-ON85256F0F.005F30CC-85256F0F.0061766B@colinx.com>
I am using sshtools sftpclient to sftp from Linux to Windows (running 
Vandyke).  My app is constantly active over this channel, but about once 
every few weeks one of the calls to Sftpclient never returns.  The call is 
to Sftpclient.ls(). 

No exception is thrown; below is a snippet of the logs.  This all occurs 
during one call to ls().  The "Waiting for new messages" at the end 
repeats every 5 seconds until I bounce the vm.  The problem seems to be 
that a SftpMessageStore never gets close() called on it.  I know from the 
last two lines of non-repeating debug that stop() is called on the 
Transport Protocol which should call close on all registered MessageStore 
objects.  This makes it seem that either I somehow have an unregistered 
MessageStore or a new one is created after stop() is called on the 
Transport Protocol. 

My primary interest is finding out why sftpclient does not return; 
secondarily I would like to know  why the disconnect happened.

I would greatly appreciate any help.
--Matt Pierce

2004-09-13 10:51:42,806 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:51:42,807 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - SshMsgKexInit:
Supported Kex [diffie-hellman-group1-sha1]
Supported Public Keys [ssh-dss, ssh-rsa]
Supported Encryption Client->Server [blowfish-cbc, 3des-cbc]
Supported Encryption Server->Client [blowfish-cbc, 3des-cbc]
Supported Mac Client->Server [hmac-sha1, hmac-md5-96, hmac-md5, 
hmac-sha1-96]
Supported Mac Server->Client [hmac-sha1, hmac-md5-96, hmac-md5, 
hmac-sha1-96]
Supported Compression Client->Server [none]
Supported Compression Server->Client [none]
Supported Languages Client->Server []
Supported Languages Server->Client []
First Kex Packet Follows [FALSE]
2004-09-13 10:51:42,808 [Transport protocol 1] INFO 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Sending 
SSH_MSG_KEX_INIT
2004-09-13 10:51:42,809 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Received 
SSH_MSG_KEX_INIT
2004-09-13 10:51:42,809 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - SshMsgKexInit:
Supported Kex [diffie-hellman-group1-sha1, 
diffie-hellman-group-exchange-sha1]
Supported Public Keys [ssh-dss]
Supported Encryption Client->Server [aes128-cbc, aes192-cbc, aes256-cbc, 
twofish-cbc, blowfish-cbc, 3des-cbc, arcfour]
Supported Encryption Server->Client [aes128-cbc, aes192-cbc, aes256-cbc, 
twofish-cbc, blowfish-cbc, 3des-cbc, arcfour]
Supported Mac Client->Server [hmac-md5, hmac-sha1, hmac-sha1-96, 
hmac-md5-96]
Supported Mac Server->Client [hmac-md5, hmac-sha1, hmac-sha1-96, 
hmac-md5-96]
Supported Compression Client->Server [none, zlib]
Supported Compression Server->Client [none, zlib]
Supported Languages Client->Server []
Supported Languages Server->Client []
First Kex Packet Follows [FALSE]
2004-09-13 10:51:42,810 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,810 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[blowfish-cbc, 3des-cbc]
2004-09-13 10:51:42,811 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[aes128-cbc, aes192-cbc, aes256-cbc, twofish-cbc, blowfish-cbc, 3des-cbc, 
arcfour]
2004-09-13 10:51:42,811 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning 
blowfish-cbc
2004-09-13 10:51:42,812 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,812 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[blowfish-cbc, 3des-cbc]
2004-09-13 10:51:42,812 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[aes128-cbc, aes192-cbc, aes256-cbc, twofish-cbc, blowfish-cbc, 3des-cbc, 
arcfour]
2004-09-13 10:51:42,813 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning 
blowfish-cbc
2004-09-13 10:51:42,813 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,814 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
2004-09-13 10:51:42,814 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[hmac-md5, hmac-sha1, hmac-sha1-96, hmac-md5-96]
2004-09-13 10:51:42,815 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning 
hmac-sha1
2004-09-13 10:51:42,815 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,815 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[hmac-sha1, hmac-md5-96, hmac-md5, hmac-sha1-96]
2004-09-13 10:51:42,816 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[hmac-md5, hmac-sha1, hmac-sha1-96, hmac-md5-96]
2004-09-13 10:51:42,816 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning 
hmac-sha1
2004-09-13 10:51:42,817 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,817 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[none]
2004-09-13 10:51:42,817 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[none, zlib]
2004-09-13 10:51:42,818 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning none
2004-09-13 10:51:42,818 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,819 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[none]
2004-09-13 10:51:42,819 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[none, zlib]
2004-09-13 10:51:42,820 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning none
2004-09-13 10:51:42,820 [Transport protocol 1] INFO 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Starting key 
exchange
2004-09-13 10:51:42,820 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Determine 
Algorithm
2004-09-13 10:51:42,821 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Client Algorithms: 
[diffie-hellman-group1-sha1]
2004-09-13 10:51:42,822 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Server Algorithms: 
[diffie-hellman-group1-sha1, diffie-hellman-group-exchange-sha1]
2004-09-13 10:51:42,822 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Returning 
diffie-hellman-group1-sha1
2004-09-13 10:51:42,822 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Key exchange 
algorithm: diffie-hellman-group1-sha1
2004-09-13 10:51:42,823 [Transport protocol 1] INFO 
com.sshtools.j2ssh.transport.kex.DhGroup1Sha1  - Starting client side key 
exchange.
2004-09-13 10:51:42,886 [Transport protocol 1] INFO 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - Sending 
SSH_MSG_KEXDH_INIT
2004-09-13 10:51:42,922 [Transport protocol 1] INFO 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - The remote 
computer disconnected: SSH2_E_KEYEXCHANGE_FAILED 
2004-09-13 10:51:42,949 [Transport protocol 1] DEBUG 
com.sshtools.j2ssh.transport.TransportProtocolCommon  - The Transport 
Protocol has been stopped
2004-09-13 10:51:47,811 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:51:52,821 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:51:57,831 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:02,841 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:07,852 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:12,862 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:17,872 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:22,882 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:27,892 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
2004-09-13 10:52:32,902 [PRODBARTHCOFEED] DEBUG 
com.sshtools.j2ssh.sftp.SftpMessageStore  - Waiting for new messages
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.