java.lang.IllegalStateException: Could not transition server from 'SETUP' to 'STARTING'

Atlassian JIRA | Mike Knight | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    During start-up, if Bamboo is configured to use Crowd and Crowd is not available, Bamboo will shut down. {noformat} 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [BambooContainer] Plugin system initialised in 44495ms 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [XWorkPluginConfigurationMaintainer] Reloading Struts configuration (Struts configuration reloads enabled)... 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [XWorkPluginConfigurationMaintainer] Struts configuration reloaded (Struts configuration reloads enabled). 2014-12-15 02:39:06,037 INFO [localhost-startStop-1] [UpgradeLauncher] Initialisation completed. 2014-12-15 02:39:28,404 INFO [pool-20-thread-1] [BambooStatsdClientProviderImpl] StatsD client initialized. 2014-12-15 02:42:31,446 FATAL [localhost-startStop-1] [BambooContainer] Cannot start bamboo java.lang.IllegalStateException: Could not transition server from 'SETUP' to 'STARTING' at com.atlassian.bamboo.ServerLifecycleManagerImpl.updateServerLifecycleState(ServerLifecycleManagerImpl.java:302) ... Caused by: javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 3346; columnNumber: 4; XML document structures must start and end within the same entity.] at javax.xml.bind.JAXB.unmarshal(JAXB.java:226) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:349) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getMemberships(RestCrowdClient.java:834) at com.atlassian.crowd.integration.atlassianuser.UserGroupFetcher.fetch(UserGroupFetcher.java:45) ... Dec 15, 2014 2:42:31 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Dec 15, 2014 2:42:31 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors 2014-12-15 02:42:31,510 INFO [localhost-startStop-1] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED paused. 2014-12-15 02:42:32,194 INFO [localhost-startStop-1] [SVNClientManagerFactory] Destroying SVNClientManagerFactories... 2014-12-15 02:42:32,261 INFO [localhost-startStop-1] [ShutdownEnforcer] Container being shut down: starting last-resort termination thread. ... {noformat} This is problematic in the case where the organisation is having a Crowd outage at the same time that Bamboo needs to be restarted. Bamboo should still be able to start and carry on as normal, despite its Crowd data not being up-to-date.

    Atlassian JIRA | 2 years ago | Mike Knight
    java.lang.IllegalStateException: Could not transition server from 'SETUP' to 'STARTING'
  2. 0

    During start-up, if Bamboo is configured to use Crowd and Crowd is not available, Bamboo will shut down. {noformat} 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [BambooContainer] Plugin system initialised in 44495ms 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [XWorkPluginConfigurationMaintainer] Reloading Struts configuration (Struts configuration reloads enabled)... 2014-12-15 02:39:06,034 INFO [localhost-startStop-1] [XWorkPluginConfigurationMaintainer] Struts configuration reloaded (Struts configuration reloads enabled). 2014-12-15 02:39:06,037 INFO [localhost-startStop-1] [UpgradeLauncher] Initialisation completed. 2014-12-15 02:39:28,404 INFO [pool-20-thread-1] [BambooStatsdClientProviderImpl] StatsD client initialized. 2014-12-15 02:42:31,446 FATAL [localhost-startStop-1] [BambooContainer] Cannot start bamboo java.lang.IllegalStateException: Could not transition server from 'SETUP' to 'STARTING' at com.atlassian.bamboo.ServerLifecycleManagerImpl.updateServerLifecycleState(ServerLifecycleManagerImpl.java:302) ... Caused by: javax.xml.bind.DataBindingException: javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException; lineNumber: 3346; columnNumber: 4; XML document structures must start and end within the same entity.] at javax.xml.bind.JAXB.unmarshal(JAXB.java:226) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:349) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getMemberships(RestCrowdClient.java:834) at com.atlassian.crowd.integration.atlassianuser.UserGroupFetcher.fetch(UserGroupFetcher.java:45) ... Dec 15, 2014 2:42:31 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Dec 15, 2014 2:42:31 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [] startup failed due to previous errors 2014-12-15 02:42:31,510 INFO [localhost-startStop-1] [QuartzScheduler] Scheduler scheduler_$_NON_CLUSTERED paused. 2014-12-15 02:42:32,194 INFO [localhost-startStop-1] [SVNClientManagerFactory] Destroying SVNClientManagerFactories... 2014-12-15 02:42:32,261 INFO [localhost-startStop-1] [ShutdownEnforcer] Container being shut down: starting last-resort termination thread. ... {noformat} This is problematic in the case where the organisation is having a Crowd outage at the same time that Bamboo needs to be restarted. Bamboo should still be able to start and carry on as normal, despite its Crowd data not being up-to-date.

    Atlassian JIRA | 2 years ago | Mike Knight
    java.lang.IllegalStateException: Could not transition server from 'SETUP' to 'STARTING'

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Could not transition server from 'SETUP' to 'STARTING'

      at com.atlassian.bamboo.ServerLifecycleManagerImpl.updateServerLifecycleState()
    2. com.atlassian.bamboo
      ServerLifecycleManagerImpl.updateServerLifecycleState
      1. com.atlassian.bamboo.ServerLifecycleManagerImpl.updateServerLifecycleState(ServerLifecycleManagerImpl.java:302)
      1 frame