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
- copied to
-
BDEV-1591 Loading...