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

Rob Stryker (JIRA) jira-events at lists.jboss.org
Mon Mar 31 18:10:40 EDT 2008


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

Gene: 
  Thanks for all the help.  It's obvious that when you first discovered the bug, you had your workspace using the "unlimited" timeout, which my poller was not prepared for. It saw a value near zero and gave up very quickly polling, claiming failure.

The only part that really confuses me so far is that, even after starting a new workspace, your server still failed to start properly. 
>I then tried to start JBoss and received the error "Server JBoss 4.2 Server Failed to Start".

Obviously that is why you switched to "unlimited", but the ultimate question is why did it fail at all?  450 seconds should be plenty of time for any server to start up really. 

The only thing I can think of is that your server does not have the JMX console enabled. In JBoss Tools and JBDS, the suggested method of starting a server that does not have JMX is *not* to switch to unlimited timeout. This will, unfortunately, leave a background thread continually trying to connect via JMX to the server, which does not have JMX enabled. 

The suggested method to remedy this is in window -> preferences -> JBoss Tools -> JBoss Servers, select your server, and switch your startup poller to "Timeout Poller".  This will do *no* polling at all (save your machine trouble) and will only set the server state to "Started" after your startup timeout is reached. 

To be fair, there *is* still a bug with my pollers not recognizing a timeout less than zero means unlimited, and I thank you for discovering that.  But if the poller is failing to recognize your server's startup, the approved course of action is to switch your startup poller to a timeout poller with an approximate timeout as to how long you think it normally takes to start up. 

Get back to me and let me know if that's helped you at all. 


> 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
>             Fix For: 2.1, LATER
>
>
> 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