ConcurrentModificationException whilst using SshClient.

"Damien Corbishley" <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Hi,
 I'm using the SshClient class in a very simple way, we use the
openChannelSession() method so we get a SesionChannelClient and we
call executeCommand.

We are running in a multithreaded environment but none of the objects
used to get to the point where we call executeCommand are shared. So
at the moment we are doing an connect, authenticate and close per run.

Occasionally under load we see this error message:

08-Mar-2006 10:42:04 com.sshtools.j2ssh.transport.TransportProtocolCommon run
SEVERE: The Transport Protocol thread failed
java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448)
        at java.util.AbstractList$Itr.next(AbstractList.java:419)
        at com.sshtools.j2ssh.transport.SshMsgKexInit.toString(Unknown Source)
        at com.sshtools.j2ssh.transport.TransportProtocolClient.setLocalKexInit(Unknown
Source)
        at com.sshtools.j2ssh.transport.TransportProtocolCommon.sendKeyExchangeInit(Unknown
Source)
        at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(Unknown
Source)
        at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:534)



Any ideas?

Damien


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
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.