-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Database Support
-
None
-
1
-
1
Issue Summary
Bitbucket is not able to get the database provider when using AWS Postgresql JDBC wrapper (https://github.com/awslabs/aws-advanced-jdbc-wrapper\)
Expected Results
Bitbucket to work with Amazon Web Services (AWS) JDBC Driver which also then to support clustered databases
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file:
Caused by: com.atlassian.activeobjects.internal.DatabaseProviderNotFoundException: Could not find database provider for data source which uses JDBC driver <Amazon Web Services (AWS) Advanced JDBC Wrapper>
at com.atlassian.activeobjects.internal.JdbcDriverDatabaseProviderFactory.getDatabaseProvider(JdbcDriverDatabaseProviderFactory.java:40)
at com.atlassian.activeobjects.internal.EntityManagerFactoryImpl.getEntityManager(EntityManagerFactoryImpl.java:30)
at com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory.lambda$doCreate$0(DataSourceProviderActiveObjectsFactory.java:67)
at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)
at com.atlassian.stash.internal.sal.spi.HostContextAccessorImpl.doInTransaction(HostContextAccessorImpl.java:54)
at jdk.internal.reflect.GeneratedMethodAccessor322.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)
at jdk.internal.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
at jdk.internal.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
at com.atlassian.activeobjects.internal.DataSourceProviderActiveObjectsFactory.doCreate(DataSourceProviderActiveObjectsFactory.java:64)
at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory.create(AbstractActiveObjectsFactory.java:66)
at com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory.create(DelegatingActiveObjectsFactory.java:31)
at com.atlassian.activeobjects.osgi.ActiveObjectsDelegate$1.lambda$null$0(ActiveObjectsDelegate.java:81)
... 5 common frames omitted
Workaround
Currently, the Amazon Web Services (AWS) JDBC Driver is not supported and only the native PostgreSQL JDBC driver without this wrapper is supported which comes by default with Bitbucket.