[jbosstools-issues] [JBoss JIRA] (JBIDE-17109) [server]'Relaunch' action for server in debug view report problems when server is in running state

Rob Stryker (JIRA) issues at jboss.org
Tue Apr 15 03:34:34 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12961883#comment-12961883 ] 

Rob Stryker commented on JBIDE-17109:
-------------------------------------

The 'relaunch' action in the debug view is not an acceptable entry point for restarting a server. I've tested this with a plain java project with the content as follows:

{code}
	public static void main(String[] args) {
		for( int i = 0; i < 1000; i++ ) {
			try { Thread.sleep(100);
			} catch(InterruptedException ie) {}
			System.out.println("i is " + i);
		}
	}
{code}

While this application was running, I right-clicked on the process in the debug view and selected relaunch. This did not stop or terminate the existing process in any way. In fact, it simply launched a second process, resulting in 2 running processes running the same application.

This is not at all appropriate for processes representing server adapters. 

The only true bug here is that the error message gives an incorrect message, and that is an upstream bug. 
                
> [server]'Relaunch' action for server in debug view report problems when server is in running state
> --------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-17109
>                 URL: https://issues.jboss.org/browse/JBIDE-17109
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 4.2.0.Beta1
>            Reporter: Denis Golovin
>            Assignee: Rob Stryker
>         Attachments: Java EE - Eclipse _049.png
>
>
> !Java EE - Eclipse _049.png!
> Error message is:
> {code}The server cannot start because it is currently starting or stopping. Wait for the current operation to complete.{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list