Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315905

Summary: ConcurrentModificationException when stopping a Remote Tools connection
Product: [Tools] PTP Reporter: Greg Watson <g.watson>
Component: Remote ToolsAssignee: Greg Watson <g.watson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0.1   
Target Milestone: 4.0   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 314771    

Description Greg Watson CLA 2010-06-06 11:11:28 EDT
Repeat by:

1. Open the Remote Environments view
2. Select a connection and start it
3. Stop the connection

The following exception is thrown:

java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
	at java.util.AbstractList$Itr.next(AbstractList.java:343)
	at org.eclipse.ptp.remotetools.internal.ssh.Connection.disconnect(Connection.java:385)
	at org.eclipse.ptp.remotetools.environment.control.SSHTargetControl.disconnect(SSHTargetControl.java:461)
	at org.eclipse.ptp.remotetools.environment.control.SSHTargetControl.kill(SSHTargetControl.java:367)
	at org.eclipse.ptp.remote.remotetools.core.environment.PTPTargetControl.kill(PTPTargetControl.java:236)
	at org.eclipse.ptp.remotetools.environment.ui.views.RemoteToolsEnvironmentView$5$1.run(RemoteToolsEnvironmentView.java:571)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Greg Watson CLA 2010-06-08 18:51:49 EDT
Fixed in HEAD
Comment 2 Greg Watson CLA 2010-06-08 18:53:47 EDT
Closing.