Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12370

NPE while upgrading from an EAR/WAR instance to 4.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.3.1
    • 4.3
    • None

    Description

      Upgrading to the latest version of Bamboo 4.3 from an older version of 4.x that was running on WAR installation resulted in an NPE while bootstrapping. The following appears in the logs

      2012-11-04 19:26:18.224002500 java.lang.NullPointerException
      2012-11-04 19:26:18.224003500 at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:258)
      2012-11-04 19:26:18.224004500 at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:80)
      2012-11-04 19:26:18.224019500 at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:67)
      2012-11-04 19:26:18.224020500 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
      

      Workaround
      Add the corresponding driver class to the HOME/bamboo.cfg.xml file as it was missing. Here is a sample for the different databases:

      MYSQL:

      <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
      

      PostgreSQL:

      <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
      

      ORACLE:

      <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
      

      MSSQL:

      <property name="hibernate.connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
      

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: