Community
Participate
Working Groups
Build ID: I20070625-1500 Steps To Reproduce: 1. Use RemoteTools to create a SSH connection. 2. Create local one or more port forwardings. 3. (optinal) Execute commands on the remote host. 4. Disconnect from remote host (without first closing the port forwardings). More information: The bug is found in the org.eclipse.ptp.remotetools.internal.ssh.Connection.disconnect() method, that is responsible for closing any remaining ssh channels that are still open when called. The exception that is thrown: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841) at java.util.HashMap$KeyIterator.next(HashMap.java:877) at org.eclipse.ptp.remotetools.internal.ssh.ExecutionManager.close(ExecutionManager.java:155) at org.eclipse.ptp.remotetools.internal.ssh.Connection.disconnect(Connection.java:288) at remotetoolstest.actions.PortTestAction.run(PortTestAction.java:91)
Created attachment 85676 [details] A patch that fixes the bug. The patch changes how RemoteTools iterates over the data structures that store open port forwardings.
Committed. Having bugs fixed as soon as they're opened is great!
The code on cvs seems to be ok, I am closing this bug.