Bamboo fails to start when using MySQL after upgrading with AbstractMethodError

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

After restoring Bamboo from a backup or database dump, Bamboo will fail to start and the following appears in the <bamboo-install>/logs/localhost.*.log

1 2 3 4 5 6 7 8 10-Mar-2017 15:40:28.606 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.atlassian.bamboo.setup.BootstrapLoaderListener java.lang.AbstractMethodError: com.mysql.jdbc.JDBC4Connection.getSchema()Ljava/lang/String; at com.mchange.v2.c3p0.impl.NewProxyConnection.getSchema(NewProxyConnection.java:1642) at com.atlassian.bamboo.utils.db.AbstractDbmsBean.getSchemaUncached(AbstractDbmsBean.java:396) at com.atlassian.bamboo.utils.db.AbstractDbmsBean.getSchema(AbstractDbmsBean.java:387) at com.atlassian.bamboo.utils.db.AbstractDbmsBean.isTablePresent(AbstractDbmsBean.java:230) at com.atlassian.bamboo.upgrade.tasks.v5_15.UpgradeTask51502UniqueSharedCredentialNames.lambda$doUpgrade$0(UpgradeTask51502UniqueSharedCredentialNames.java:37) ...

Or the following in <bamboo-install>/logs/catalina.out:

1 2 3 4 5 6 7 8 9 2017-06-18 08:00:52,372 ERROR [16-UpgradeTaskBackgroundThread:pool-31-thread-1] [SqlExceptionHelper] Not supported 2017-06-18 08:00:52,376 ERROR [16-UpgradeTaskBackgroundThread:pool-31-thread-1] [AbstractUpgradeManager] org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; error executing work; nested exception is org.hibernate.exception.GenericJDBCException: error executing work org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; error executing work; nested exception is org.hibernate.exception.GenericJDBCException: error executing work at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:171) .. Caused by: java.sql.SQLFeatureNotSupportedException: Not supported at com.mysql.jdbc.JDBC4Connection.getSchema(JDBC4Connection.java:258) at com.mchange.v2.c3p0.impl.NewProxyConnection.getSchema(NewProxyConnection.java:1642) at com.atlassian.bamboo.utils.db.AbstractDbmsBean.getSchemaUncached(AbstractDbmsBean.java:395)

The following is also present in <bamboo-install>/logs>/catalina.out however this is a generic message that suggests that the error detail is in the above container log.

1 2 10-Mar-2017 15:40:28.621 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 10-Mar-2017 15:40:28.638 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors

Cause

An incompatibility with newer C3P0 libraries and the version of the MySQL JDBC driver that was downloaded for use with Bamboo.

Resolution

Download a more recent version of the MySQL JDBC driver: https://dev.mysql.com/downloads/connector/j/

At the time of writing this issue presented on Bamboo 5.15.3 with MySQL Java connector 5.1.20 and can be resolved by updating it to 5.1.41. For more information on how to install the MySQL JDBC driver for use with Bamboo please refer to the following documentation: Connect Bamboo to a MySQL database

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.