[jbosstools-issues] [JBoss JIRA] (JBIDE-16999) Tooling does not recognize remote server failed to start

Rob Stryker (JIRA) issues at jboss.org
Mon Apr 7 04:18:13 EDT 2014


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

Rob Stryker commented on JBIDE-16999:
-------------------------------------

I have absolutely no idea how to make this happen ;)  

I spent a few hours this morning reading about possible shell commands I could pass to obtain an exit status, but I encountered several problems. 

We already use the shell feature of $! to figure out the most recent command's process ID, and that seems to work. Other research seems to indicate $? will tell you the exit status, but I was never able to obtain an exit status other than 0 here. Furthermore, if the command hasn't failed *yet*, then this will return 0 as well. So we'd need to discover or hard-code some sort of timeout before which we test the exit status of that command. 

The other issue is that once we obtain the process id, the return status command ($?) will now return the exit status for the echo we issued to get the PID of the jboss launch, not the exit status of the jboss launch itself. And there are also many times where the server is still up and running, and so has not terminated and thus has no exit status at all yet. 

I can't see a clear path to be able to handle this so far. 
                
> Tooling does not recognize remote server failed to start
> --------------------------------------------------------
>
>                 Key: JBIDE-16999
>                 URL: https://issues.jboss.org/browse/JBIDE-16999
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 4.2.0.Beta1
>         Environment: JBDS 8.0.0.Beta1a B82
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>             Fix For: 4.2.0.Beta2
>
>
> When you set up a remote server and then start it, but the java process on the remote host fails (e.g. wrong java version), the tooling will show that the server is starting. It should recognize that failed process.

--
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