[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1891) Error when stopping JBoss

Rob Stryker (JIRA) jira-events at lists.jboss.org
Wed Mar 26 16:35:40 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1891?page=comments#action_12404926 ] 
            
Rob Stryker commented on JBIDE-1891:
------------------------------------

Thanks for all your information =D

Ok... well... for shutdowns, the poller the PollThread *should* be delegating to is called the ProcessTerminatedPoller. It has an id of org.jboss.ide.eclipse.as.core.runtime.server.processTerminatedPoller.

If you look at the code in it, this poller should always return that it is still checking whether the server is up or down *UNTIL* the process is terminated. Which means the PollThread should be stuck in its main loop until the process is terminated. (lines 140-165)

The only way I can see for you to be seeing that behaviour is if:
1) your PollThread is NOT the ProcessTerminatedPoller, (line 76)
2) your maxWait variable is very very low (line 132). 
or 3) something somewhere is calling cancel (line 99 and line 102)


you can check the first and second possibilities via debug or you can even change them via UI. Window -> Preferences -> JBoss Tools -> JBoss Servers, then select your server. There you'll be able to edit the timeouts and the pollers to use. 

Good luck and I look forward to hearing back from you =] 


> Error when stopping JBoss
> -------------------------
>
>                 Key: JBIDE-1891
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1891
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>    Affects Versions: 2.0.0.GA
>         Environment: Windows XP, Eclipse 3.3.1.1, JBoss Tools 2.0.0GA, JBoss 4.2.0
>            Reporter: Gene Gretter
>         Assigned To: Rob Stryker
>
> When stopping JBoss from the Eclipse Server view, I receive the following error:  "Could not obtain connection to any of these urls: localhost:1099".  I found that this problem occurs because the process in which JBoss is running is terminated before shutdown is executed.  I found that eliminating the call to pollServer(IServerStatePoller.SERVER_DOWN); in the JBossServerBehavior.serverStopping() method resolves the problem, though I am not sure that this is the final fix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list