java.lang.RuntimeException: Failed to upgrade

Atlassian JIRA | Mark Chaimungkalanont | 9 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

    If you have a plan with multiple externals, the second startup will cause something like 2008-05-01 16:21:38,957 FATAL [main] [BambooContainer:237] Cannot start bamboo java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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-05-01 16:21:42,651 FATAL [main] [UpgradeLauncher:132] Failed to initialise Bamboo container java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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-05-01 16:21:42.917::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@af617e{/bamboo,./bamboo-tags/bamboo-head/bamboo-web-app/src/main/webapp} java.lang.RuntimeException: Failed to upgrade at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:138) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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) Caused by: java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) ... 11 more

    Atlassian JIRA | 9 years ago | Mark Chaimungkalanont
    java.lang.RuntimeException: Failed to upgrade
  2. 0

    If you have a plan with multiple externals, the second startup will cause something like 2008-05-01 16:21:38,957 FATAL [main] [BambooContainer:237] Cannot start bamboo java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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-05-01 16:21:42,651 FATAL [main] [UpgradeLauncher:132] Failed to initialise Bamboo container java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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-05-01 16:21:42.917::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@af617e{/bamboo,./bamboo-tags/bamboo-head/bamboo-web-app/src/main/webapp} java.lang.RuntimeException: Failed to upgrade at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:138) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37) 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) Caused by: java.lang.NumberFormatException: For input string: "[58046, 58046]" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:403) at java.lang.Long.parseLong(Long.java:461) at com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131) at com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646) at com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317) at com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123) ... 11 more

    Atlassian JIRA | 9 years ago | Mark Chaimungkalanont
    java.lang.RuntimeException: Failed to upgrade
  3. 0

    How to Send SMS using Java Program (full code sample included)

    java-samples.com | 10 months ago
    java.lang.NumberFormatException: For input string: "df244"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Asynchronous Javascript problem

    Google Groups | 8 years ago | Channing Walton
    java.lang.NumberFormatException: For input string: "(-~0)"
  6. 0

    Automatic background AJAX: best way to do it?

    Google Groups | 8 years ago | Nolan Darilek
    java.lang.NumberFormatException: For input string: "(-~9)7"
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "[58046, 58046]"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Long.parseLong
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    2. java.lang.Long.parseLong(Long.java:403)
    3. java.lang.Long.parseLong(Long.java:461)
    3 frames
  3. com.atlassian.bamboo
    UpgradeLauncher.contextInitialized
    1. com.atlassian.bamboo.utils.ConfigUtils.toLongMap(ConfigUtils.java:131)
    2. com.atlassian.bamboo.repository.svn.SvnRepository.populateFromConfig(SvnRepository.java:646)
    3. com.atlassian.bamboo.fieldvalue.BuildDefinitionConverter.toObject(BuildDefinitionConverter.java:137)
    4. com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinitionFromBuild(DefaultBuildDefinitionManager.java:73)
    5. com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:31)
    6. com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419)
    7. com.atlassian.bamboo.container.BambooContainer.initialiseBuilds(BambooContainer.java:317)
    8. com.atlassian.bamboo.container.BambooContainer.start(BambooContainer.java:229)
    9. com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:123)
    10. com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:37)
    10 frames
  4. Jetty Server
    WebAppContext.doStart
    1. org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
    2. org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
    3. org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
    4. org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
    5. org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    5 frames
  5. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    1 frame
  6. Jetty Server
    Server.doStart
    1. org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
    2. org.mortbay.jetty.Server.doStart(Server.java:217)
    2 frames
  7. Jetty Util
    AbstractLifeCycle.start
    1. org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    1 frame
  8. com.atlassian.bamboo
    Server.main
    1. com.atlassian.bamboo.server.Server.main(Server.java:60)
    1 frame