java.lang.IllegalStateException: Unable to bootstrap Bamboo: null

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {noformat} 2008-04-16 14:37:56,515 INFO [main] [lifecycle] Real path of servlet context: /Applications/Bamboo/webapp/ 2008-04-16 14:37:57,135 INFO [main] [DefaultAtlassianBootstrapManager] Running pre-bootstrap upgrade task Renaming tables / columns for compatibility with Oracle and MSSQL Server for buildnumber 706 2008-04-16 14:37:57,157 FATAL [main] [PreBootstrapUpgradeTask706OracleMSSQLFix] Could not get connection to the MySQL database with driver com.mysql.jdbc.Driver java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.getConnection(PreBootstrapUpgradeTask706OracleMSSQLFix.java:193) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.performSqlUpdates(PreBootstrapUpgradeTask706OracleMSSQLFix.java:118) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.performMySQLUpdate(PreBootstrapUpgradeTask706OracleMSSQLFix.java:89) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.doUpgrade(PreBootstrapUpgradeTask706OracleMSSQLFix.java:57) at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:164) at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:76) at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:59) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2008-04-16 14:37:57,166 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: null java.lang.IllegalStateException: Unable to bootstrap Bamboo: null at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:62) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) {noformat} Notice {{java.lang.IllegalStateException: Unable to bootstrap Bamboo: null}}. Null should be something useful
    via by Ajay Sridhar [Atlassian],
  • {noformat} 2008-04-16 14:37:56,515 INFO [main] [lifecycle] Real path of servlet context: /Applications/Bamboo/webapp/ 2008-04-16 14:37:57,135 INFO [main] [DefaultAtlassianBootstrapManager] Running pre-bootstrap upgrade task Renaming tables / columns for compatibility with Oracle and MSSQL Server for buildnumber 706 2008-04-16 14:37:57,157 FATAL [main] [PreBootstrapUpgradeTask706OracleMSSQLFix] Could not get connection to the MySQL database with driver com.mysql.jdbc.Driver java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:316) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:375) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.getConnection(PreBootstrapUpgradeTask706OracleMSSQLFix.java:193) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.performSqlUpdates(PreBootstrapUpgradeTask706OracleMSSQLFix.java:118) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.performMySQLUpdate(PreBootstrapUpgradeTask706OracleMSSQLFix.java:89) at com.atlassian.bamboo.setup.PreBootstrapUpgradeTask706OracleMSSQLFix.doUpgrade(PreBootstrapUpgradeTask706OracleMSSQLFix.java:57) at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:164) at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:76) at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:59) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) 2008-04-16 14:37:57,166 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: null java.lang.IllegalStateException: Unable to bootstrap Bamboo: null at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:62) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) {noformat} Notice {{java.lang.IllegalStateException: Unable to bootstrap Bamboo: null}}. Null should be something useful
    via by Ajay Sridhar [Atlassian],
  • Logs show the following: {noformat} 2008-02-11 00:39:30,046 INFO [main] [lifecycle] Real path of servlet context: /opt/bamboo-2.0beta1/webapp/ 2008-02-11 00:39:30,202 FATAL [main] [DefaultAtlassianBootstrapManager] Cannot set default broker URL and no brokerURL defined. 2008-02-11 00:39:30,203 ERROR [main] [DefaultAtlassianBootstrapManager] Home is not configured properly: com.atlassian.config.ConfigurationException: Cannot set default broker URL and no brokerURL defined. 2008-02-11 00:39:30,210 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: Cannot set default broker URL and no brokerURL defined. java.lang.IllegalStateException: Unable to bootstrap Bamboo: Cannot set default broker URL and no brokerURL defined. at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:65) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) {noformat}
    via by Adrian Hempel [Atlassian],
  • Logs show the following: {noformat} 2008-02-11 00:39:30,046 INFO [main] [lifecycle] Real path of servlet context: /opt/bamboo-2.0beta1/webapp/ 2008-02-11 00:39:30,202 FATAL [main] [DefaultAtlassianBootstrapManager] Cannot set default broker URL and no brokerURL defined. 2008-02-11 00:39:30,203 ERROR [main] [DefaultAtlassianBootstrapManager] Home is not configured properly: com.atlassian.config.ConfigurationException: Cannot set default broker URL and no brokerURL defined. 2008-02-11 00:39:30,210 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: Cannot set default broker URL and no brokerURL defined. java.lang.IllegalStateException: Unable to bootstrap Bamboo: Cannot set default broker URL and no brokerURL defined. at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:65) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60) {noformat}
    via by Adrian Hempel [Atlassian],
  • Bamboo licenses have a maintenance expiry date. Builds newer than the license's maintenance expiry date fail to start. Plugin developer licenses set the maintenance limit to 3h in the future. Therefore, builds with a timestamp of >3h in the future fail to start on a plugin developer license. The logic that evaluates whether an instance's maintenance period has expired does not take timezones into account. Therefore, if you build a Bamboo release in Sydney and, within a few hours, attempt to start it in the US on a plugin dev license, you will hit the failure below. We run into this regularly in Studio builds after upgrading Bamboo (because the CI agents are in the US). {noformat} 2011-06-01 02:51:20,071 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: Unable to run pre-bootstrap upgrade tasks as your support period has ended. Please contact Atlassian and https://support.atlassian.com java.lang.IllegalStateException: Unable to bootstrap Bamboo: Unable to run pre-bootstrap upgrade tasks as your support period has ended. Please contact Atlassian and https://support.atlassian.com at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {noformat} The build timestamp is written to {{bamboo-api/com.atlassian.bamboo.util.BuildUtils}}, which is generated at build time. The maintenance limit verification logic is in {{bamboo-license/com.atlassian.bamboo.license.BambooLicenseManagerImpl.isMaintenanceExpiredForBuild()}}. One solution would be to update these to be timezone-aware.
    via by Robin Fernandes [Atlassian],
  • Bamboo licenses have a maintenance expiry date. Builds newer than the license's maintenance expiry date fail to start. Plugin developer licenses set the maintenance limit to 3h in the future. Therefore, builds with a timestamp of >3h in the future fail to start on a plugin developer license. The logic that evaluates whether an instance's maintenance period has expired does not take timezones into account. Therefore, if you build a Bamboo release in Sydney and, within a few hours, attempt to start it in the US on a plugin dev license, you will hit the failure below. We run into this regularly in Studio builds after upgrading Bamboo (because the CI agents are in the US). {noformat} 2011-06-01 02:51:20,071 FATAL [main] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below): Unable to bootstrap Bamboo: Unable to run pre-bootstrap upgrade tasks as your support period has ended. Please contact Atlassian and https://support.atlassian.com java.lang.IllegalStateException: Unable to bootstrap Bamboo: Unable to run pre-bootstrap upgrade tasks as your support period has ended. Please contact Atlassian and https://support.atlassian.com at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {noformat} The build timestamp is written to {{bamboo-api/com.atlassian.bamboo.util.BuildUtils}}, which is generated at build time. The maintenance limit verification logic is in {{bamboo-license/com.atlassian.bamboo.license.BambooLicenseManagerImpl.isMaintenanceExpiredForBuild()}}. One solution would be to update these to be timezone-aware.
    via by Robin Fernandes [back 5th Oct],
    • java.lang.IllegalStateException: Unable to bootstrap Bamboo: null at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:62) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.atlassian.bamboo.server.Server.main(Server.java:60)
    No Bugmate found.