Bug 192390 - Shell Processes fails when run with slow logout
Summary: Shell Processes fails when run with slow logout
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: Future   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2007-06-13 05:36 EDT by David Dykstal CLA
Modified: 2012-11-19 04:57 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Dykstal CLA 2007-06-13 05:36:55 EDT
This is technically an invalid configuration, but should fail more gracefully.

Create a Linux system type but target MacOS X. This gets you a connection that contains the "Shell Processes" subsystem. Expand one of the filters in the subsystem - get an InvalidThreadStateException.

This is thrown explicitly from HostShellProcessAdapter since the underlying shell process is still active.
Comment 1 David Dykstal CLA 2007-06-13 05:54:29 EDT
Changing title to reflect symptom. Create a Linux Host using all the "ssh" services. Create a .bash_logout script as follows:
sleep 1

Attempt to connect and get an InvalidThreadStateException. When the "Shell Processes" subsystem starts it gets this when retrieving user names on init.

java.lang.IllegalThreadStateException
at org.eclipse.rse.services.shells.HostShellProcessAdapter.exitValue(HostShellProcessAdapter.java:85)
at org.eclipse.rse.internal.subsystems.processes.shell.linux.LinuxProcessHelper.populateUsernames(LinuxProcessHelper.java:132)
at org.eclipse.rse.internal.subsystems.processes.shell.linux.LinuxShellProcessService.initService(LinuxShellProcessService.java:190)
at org.eclipse.rse.subsystems.processes.servicesubsystem.ProcessServiceSubSystem.initializeSubSystem(ProcessServiceSubSystem.java:195)
at org.eclipse.rse.core.subsystems.AbstractConnectorService.initializeSubSystems(AbstractConnectorService.java:298)
at org.eclipse.rse.core.subsystems.AbstractConnectorService.connect(AbstractConnectorService.java:413)
at org.eclipse.rse.core.subsystems.SubSystem.connect(SubSystem.java:2255)
at org.eclipse.rse.internal.ui.actions.SystemConnectAllSubSystemsAction$ConnectAllJob.run(SystemConnectAllSubSystemsAction.java:69)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)