Upgraded from 5.7.4 to 6.9.1 and it just hangs.
Asked by Flatirons Project:

After doing an upgrade from 5.7.4 to 6.9.1 using the embedded database, confluence never gets to the login page. It just hangs at a blank site. I am using the \<localhost-ip\>:8090

Looking through the logs I am not seeing anything that gives me the idea of an error. Any help is appreciated.

Thanks

Robert


Answers:
author: AnnWorley
body: Hi - The error that stands out for me in your logs is:

```
Connections could not be acquired from the underlying database!
```

Please check out the causes and resolutions on [Connections could not be acquired from the underlying database](https://confluence.atlassian.com/confkb/connections-could-not-be-acquired-from-the-underlying-database-104825087.html) to see if any of them apply in your case.

Thanks,

Ann

comments: author: Flatirons Project
body: Thanks Ann,

This is where I am confused. I am using the embedded database and everything was working in 5.7.4. All I did was run the installer for 6.9.1. Atlassian's upgrade path said I should be able to do 5.x - 6.x with no issues. I guess I am going to have to restore the snapshot and do incremental backups until I figure out what breaks.


author: Flatirons Project
body: 5.7.4 to 5.10.9 works with no issues.


author: Flatirons Project
body: ```
2018-06-26 12:44:42,993 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#2] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:44:42,995 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!
2018-06-26 12:44:43,003 ERROR [localhost-startStop-1] [atlassian.confluence.plugin.BandanaPluginStateStore] load Exception when loading plugins state from the database. Falling back to in memory state.
java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
?? ?at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)
?? ?at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$load$1(BandanaPluginStateStore.java:57)
?? ?at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.load(BandanaPluginStateStore.java:69)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.lambda$load$0(CachingPluginStateStore.java:44)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)
?? ?at java.util.Optional.orElseGet(Optional.java:267)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.load(CachingPluginStateStore.java:43)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.getState(PluginPersistentStateModifier.java:18)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.getState(DefaultPluginManager.java:1090)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:540)
?? ?at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)
?? ?at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)
?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
?? ?at java.util.concurrent.FutureTask.run(FutureTask.java:266)
?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
?? ?at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
?? ?at com.sun.proxy.$Proxy55.retrieve(Unknown Source)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
?? ?... 33 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy54.getProperties(Unknown Source)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
?? ?at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
?? ?at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
?? ?at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
?? ?at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 54 more
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)
?? ?at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 75 more
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.atlassian.hibernate.dialect.HSQL2Dialect] as strategy [org.hibernate.dialect.Dialect]
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
?? ?... 95 more
```


author: Flatirons Project
body: atlassian-confluence.log

2018-06-26 12:42:39,224 INFO \[localhost-startStop-1\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 6.9.1 \[build 7701 based on commit hash 88819522251e178b5cc83bc1e3ddc18a884c1aed\] - synchrony version 2.1.0-master-ed94c233  
2018-06-26 12:42:44,312 INFO \[localhost-startStop-1\] \[atlassian.confluence.cluster.DefaultClusterConfigurationHelper\] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...  
2018-06-26 12:42:44,498 INFO \[localhost-startStop-1\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization started  
2018-06-26 12:42:49,075 INFO \[localhost-startStop-1\] \[com.atlassian.confluence.lifecycle\] \<init\> Loading EhCache cache manager  
2018-06-26 12:43:05,075 INFO \[localhost-startStop-1\] \[springframework.web.context.ContextLoader\] initWebApplicationContext Root WebApplicationContext: initialization completed in 20577 ms  
2018-06-26 12:43:35,630 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1bradps9wgx31dc1lvilam\|708e5c33\]-HelperThread-#1\] \[mchange.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@78cbb149 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:  
java.lang.NullPointerException  
at org.postgresql.Driver.parseURL(Driver.java:531)  
at org.postgresql.Driver.acceptsURL(Driver.java:463)  
at java.sql.DriverManager.getDriver(DriverManager.java:299)  
at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)  
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)  
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)  
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)  
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)  
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)  
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
2018-06-26 12:43:35,640 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1bradps9wgx31dc1lvilam\|708e5c33\]-HelperThread-#1\] \[mchange.v2.resourcepool.BasicResourcePool\] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@ba4fce1 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.  
2018-06-26 12:43:35,644 WARN \[localhost-startStop-1\] \[atlassian.confluence.setup.DefaultBootstrapManager\] getDatabaseBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Connections could not be acquired from the underlying database!  
2018-06-26 12:43:35,689 INFO \[localhost-startStop-1\] \[atlassian.plugin.manager.DefaultPluginManager\] earlyStartup Plugin system earlyStartup begun  
2  
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)  
2018-06-26 12:44:42,993 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1bradps9wgx31dc1lvilam\|682d1434\]-HelperThread-#2\] \[mchange.v2.resourcepool.BasicResourcePool\] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.  
2018-06-26 12:44:42,995 WARN \[localhost-startStop-1\] \[jdbc.env.internal.JdbcEnvironmentInitiator\] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!  
2018-06-26 12:44:43,003 ERROR \[localhost-startStop-1\] \[atlassian.confluence.plugin.BandanaPluginStateStore\] load Exception when loading plugins state from the database. Falling back to in memory state.  
java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource \[databaseSubsystemContext.xml\]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource \[productionDatabaseContext.xml\]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service \[org.hibernate.engine.jdbc.env.spi.JdbcEnvironment\]  
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)  
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)  
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)  
at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)  
at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)  
at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)  
at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)  
at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)  
at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)  
at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)  
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)  
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)  
at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$load$1(BandanaPluginStateStore.java:57)  
at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)  
at com.atlassian.confluence.plugin.BandanaPluginStateStore.load(BandanaPluginStateStore.java:69)  
at com.atlassian.confluence.plugin.CachingPluginStateStore.lambda$load$0(CachingPluginStateStore.java:44)  
at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)  
at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)  
at java.util.Optional.orElseGet(Optional.java:267)  
at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)  
at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)  
at com.atlassian.confluence.plugin.CachingPluginStateStore.load(CachingPluginStateStore.java:43)  
at com.atlassian.plugin.manager.PluginPersistentStateModifier.getState(PluginPersistentStateModifier.java:18)  
at com.atlassian.plugin.manager.DefaultPluginManager.getState(DefaultPluginManager.java:1090)  
at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:540)  
at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)  
at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)  
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)  
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)  
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)  
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource \[databaseSubsystemContext.xml\]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource \[productionDatabaseContext.xml\]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service \[org.hibernate.engine.jdbc.env.spi.JdbcEnvironment\]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)  
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)  
at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)  
at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(\<generated\>)  
at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)  
at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)  
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy55.retrieve(Unknown Source)  
at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)  
at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)  
at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)  
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)  
... 33 more  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource \[productionDatabaseContext.xml\]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service \[org.hibernate.engine.jdbc.env.spi.JdbcEnvironment\]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)  
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)  
at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)  
at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(\<generated\>)  
at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)  
at com.sun.proxy.$Proxy54.getProperties(Unknown Source)  
at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)  
at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)  
at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)  
at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)  
at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)  
at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)  
at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)  
at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)  
... 54 more  
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service \[org.hibernate.engine.jdbc.env.spi.JdbcEnvironment\]  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)  
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)  
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)  
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)  
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)  
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)  
at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)  
at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)  
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)  
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)  
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)  
at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)  
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)  
at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)  
at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)  
... 75 more  
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name \[com.atlassian.hibernate.dialect.HSQL2Dialect\] as strategy \[org.hibernate.dialect.Dialect\]  
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)  
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)  
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)  
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)  
at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)  
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)  
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)  
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)  
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)  
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)  
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)  
... 95 more  
2


author: AnnWorley
body: Hi - Thanks for the GC logs. For more basic error messages please check:  
\* \<confluence_install\>/logs/ (anything recent in this directory)  
\* \<confluence_home\>/logs/atlassian-confluence.log  
(note) The \<confluence_home\> directory is the path defined in the following file: \<confluence_install\>/confluence/WEB-INF/classes/confluence-init.properties

If you see any errors in the atlassian-confluence.log, especially between the phrase "Starting Confluence" and "Confluence is ready to serve" please post them so we can investigate.

Thanks,

Ann

comments: author: Flatirons Project
body: Ann,

Thanks, I was able to find errors in the atlassian-confluence.log.

```
?2018-06-26 12:47:19,655 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:47:19,657 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!
2018-06-26 12:47:19,665 ERROR [localhost-startStop-1] [atlassian.confluence.plugin.BandanaPluginStateStore] save Exception when saving plugins state to the database. Saving to in memory state.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
?? ?at com.sun.proxy.$Proxy55.store(Unknown Source)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.store(ConfluenceCachingBandanaPersister.java:140)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.store(ConfluenceCachingBandanaPersister.java:118)
?? ?at com.atlassian.bandana.DefaultBandanaManager.setValue(DefaultBandanaManager.java:48)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$save$0(BandanaPluginStateStore.java:36)
?? ?at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.save(BandanaPluginStateStore.java:42)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.save(CachingPluginStateStore.java:37)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.apply(PluginPersistentStateModifier.java:32)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.setEnabled(PluginPersistentStateModifier.java:53)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.enable(PluginPersistentStateModifier.java:66)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.enablePluginModule(DefaultPluginManager.java:2029)
?? ?at com.atlassian.confluence.plugin.EventDispatchingPluginController.enablePluginModule(EventDispatchingPluginController.java:71)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
?? ?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
?? ?at java.lang.reflect.Method.invoke(Method.java:498)
?? ?at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
?? ?at com.sun.proxy.$Proxy119.enablePluginModule(Unknown Source)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
?? ?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
?? ?at java.lang.reflect.Method.invoke(Method.java:498)
?? ?at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
?? ?at com.sun.proxy.$Proxy412.enablePluginModule(Unknown Source)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?? ?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
?? ?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
?? ?at java.lang.reflect.Method.invoke(Method.java:498)
?? ?at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
?? ?at com.sun.proxy.$Proxy412.enablePluginModule(Unknown Source)
?? ?at com.atlassian.confluence.notifications.impl.descriptors.NotificationTemplateDescriptor.enabled(NotificationTemplateDescriptor.java:92)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:2045)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1786)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1763)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1263)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1218)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:597)
?? ?at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)
?? ?at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)
?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
?? ?at java.util.concurrent.FutureTask.run(FutureTask.java:266)
?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
?? ?at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy54.getProperties(Unknown Source)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
?? ?at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
?? ?at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
?? ?at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
?? ?at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 72 more
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)
?? ?at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 93 more
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.atlassian.hibernate.dialect.HSQL2Dialect] as strategy [org.hibernate.dialect.Dialect]
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
?? ?... 113 more
2018-06-26 12:47:27,342 WARN [Navlink Plugin Executor:thread-2] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE
2018-06-26 12:47:37,342 WARN [Navlink Plugin Executor:thread-2] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE
2018-06-26 12:47:47,342 WARN [Navlink Plugin Executor:thread-2] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE?
```


author: Flatirons Project
body: From the atlassian-confluence.log

```
2018-06-26 12:42:39,224 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.9.1 [build 7701 based on commit hash 88819522251e178b5cc83bc1e3ddc18a884c1aed] - synchrony version 2.1.0-master-ed94c233
2018-06-26 12:42:44,312 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...
2018-06-26 12:42:44,498 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization started
2018-06-26 12:42:49,075 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] <init> Loading EhCache cache manager
2018-06-26 12:43:05,075 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization completed in 20577 ms
2018-06-26 12:43:35,630 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@78cbb149 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
java.lang.NullPointerException
?? ?at org.postgresql.Driver.parseURL(Driver.java:531)
?? ?at org.postgresql.Driver.acceptsURL(Driver.java:463)
?? ?at java.sql.DriverManager.getDriver(DriverManager.java:299)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
?? ?at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
?? ?at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
2018-06-26 12:43:35,640 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@ba4fce1 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:43:35,644 WARN [localhost-startStop-1] [atlassian.confluence.setup.DefaultBootstrapManager] getDatabaseBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Connections could not be acquired from the underlying database!
2018-06-26 12:43:35,689 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun
2018-0AsynchronousRunner.java:696)
2018-06-26 12:44:42,993 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#2] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:44:42,995 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!
2018-06-26 12:44:43,003 ERROR [localhost-startStop-1] [atlassian.confluence.plugin.BandanaPluginStateStore] load Exception when loading plugins state from the database. Falling back to in memory state.
java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
?? ?at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)
?? ?at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$load$1(BandanaPluginStateStore.java:57)
?? ?at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.load(BandanaPluginStateStore.java:69)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.lambda$load$0(CachingPluginStateStore.java:44)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)
?? ?at java.util.Optional.orElseGet(Optional.java:267)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.load(CachingPluginStateStore.java:43)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.getState(PluginPersistentStateModifier.java:18)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.getState(DefaultPluginManager.java:1090)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:540)
?? ?at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)
?? ?at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)
?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
?? ?at java.util.concurrent.FutureTask.run(FutureTask.java:266)
?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
?? ?at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
?? ?at com.sun.proxy.$Proxy55.retrieve(Unknown Source)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
?? ?... 33 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy54.getProperties(Unknown Source)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
?? ?at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
?? ?at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
?? ?at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
?? ?at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 54 more
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)
?? ?at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 75 more
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.atlassian.hibernate.dialect.HSQL2Dialect] as strategy [org.hibernate.dialect.Dialect]
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
?? ?... 95 more

```


author: Flatirons Project
body: atlassian-confluence.log
>
> ```
> 2018-06-26 12:42:39,224 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.9.1 [build 7701 based on commit hash 88819522251e178b5cc83bc1e3ddc18a884c1aed] - synchrony version 2.1.0-master-ed94c233
> 2018-06-26 12:42:44,312 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...
> 2018-06-26 12:42:44,498 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization started
> 2018-06-26 12:42:49,075 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] <init> Loading EhCache cache manager
> 2018-06-26 12:43:05,075 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization completed in 20577 ms
> 2018-06-26 12:43:35,630 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@78cbb149 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
> java.lang.NullPointerException
> ?? ?at org.postgresql.Driver.parseURL(Driver.java:531)
> ?? ?at org.postgresql.Driver.acceptsURL(Driver.java:463)
> ?? ?at java.sql.DriverManager.getDriver(DriverManager.java:299)
> ?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
> ?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
> ?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
> ?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
> ?? ?at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
> ?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
> ?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
> ?? ?at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
> ?? ?at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
> ?? ?at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
> 2018-06-26 12:43:35,640 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@ba4fce1 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
> 2018-06-26 12:43:35,644 WARN [localhost-startStop-1] [atlassian.confluence.setup.DefaultBootstrapManager] getDatabaseBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Connections could not be acquired from the underlying database!
> 2018-06-26 12:43:35,689 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun
> ] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
> 2018-06-26 12:44:42,995 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!
> 2018-06-26 12:44:43,003 ERROR [localhost-startStop-1] [atlassian.confluence.plugin.BandanaPluginStateStore] load Exception when loading plugins state from the database. Falling back to in memory state.
> java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
> ?? ?at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
> ?? ?at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
> ?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)
> ?? ?at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
> ?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
> ?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)
> ?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)
> ?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)
> ?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)
> ?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)
> ?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
> ?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
> ?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$load$1(BandanaPluginStateStore.java:57)
> ?? ?at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)
> ?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.load(BandanaPluginStateStore.java:69)
> ?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.lambda$load$0(CachingPluginStateStore.java:44)
> ?? ?at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)
> ?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)
> ?? ?at java.util.Optional.orElseGet(Optional.java:267)
> ?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)
> ?? ?at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)
> ?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.load(CachingPluginStateStore.java:43)
> ?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.getState(PluginPersistentStateModifier.java:18)
> ?? ?at com.atlassian.plugin.manager.DefaultPluginManager.getState(DefaultPluginManager.java:1090)
> ?? ?at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:540)
> ?? ?at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)
> ?? ?at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)
> ?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)
> ?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
> ?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
> ?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
> ?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
> ?? ?at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ?? ?at java.lang.Thread.run(Thread.java:748)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> ?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
> ?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
> ?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(<generated>)
> ?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
> ?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
> ?? ?at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)
> ?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
> ?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
> ?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
> ?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> ?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
> ?? ?at com.sun.proxy.$Proxy55.retrieve(Unknown Source)
> ?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)
> ?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)
> ?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)
> ?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
> ?? ?... 33 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> ?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> ?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
> ?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
> ?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(<generated>)
> ?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
> ?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
> ?? ?at com.sun.proxy.$Proxy54.getProperties(Unknown Source)
> ?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
> ?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
> ?? ?at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
> ?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
> ?? ?at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
> ?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
> ?? ?at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
> ?? ?at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
> ?? ?... 54 more
> Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
> ?? ?at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
> ?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
> ?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
> ?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
> ?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
> ?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
> ?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
> ?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
> ?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
> ?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)
> ?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)
> ?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)
> ?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)
> ?? ?at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
> ?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
> ?? ?... 75 more
> Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.atlassian.hibernate.dialect.HSQL2Dialect] as strategy [org.hibernate.dialect.Dialect]
> ?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
> ?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
> ?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
> ?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
> ?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
> ?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
> ?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
> ?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
> ?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
> ?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
> ?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
> ?? ?... 95 more
> ```


author: Flatirons Project
body: I'm having trouble posting things from the atlassian-confluence.log. Here is the first error.

```
018-06-26 12:42:39,224 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.9.1 [build 7701 based on commit hash 88819522251e178b5cc83bc1e3ddc18a884c1aed] - synchrony version 2.1.0-master-ed94c233
2018-06-26 12:42:44,312 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...
2018-06-26 12:42:44,498 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization started
2018-06-26 12:42:49,075 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] <init> Loading EhCache cache manager
2018-06-26 12:43:05,075 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization completed in 20577 ms
2018-06-26 12:43:35,630 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@78cbb149 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
java.lang.NullPointerException
?? ?at org.postgresql.Driver.parseURL(Driver.java:531)
?? ?at org.postgresql.Driver.acceptsURL(Driver.java:463)
?? ?at java.sql.DriverManager.getDriver(DriverManager.java:299)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
?? ?at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
?? ?at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
2018-06-26 12:43:35,640 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@ba4fce1 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:43:35,644 WARN [localhost-startStop-1] [atlassian.confluence.setup.DefaultBootstrapManager] getDatabaseBuildNumber Unable to determine build number from database. If you are upgrading from a Confluence version prior to 2.3, this is expected: Connections could not be acquired from the underlying database!
2018-06-26 12:43:35,689 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system 
```


author: Flatirons Project
body: More errors:

```
2018-06-26 12:44:42,993 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#2] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:44:42,995 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!
2018-06-26 12:44:43,003 ERROR [localhost-startStop-1] [atlassian.confluence.plugin.BandanaPluginStateStore] load Exception when loading plugins state from the database. Falling back to in memory state.
java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
?? ?at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)
?? ?at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
?? ?at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
?? ?at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.lambda$load$1(BandanaPluginStateStore.java:57)
?? ?at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:145)
?? ?at com.atlassian.confluence.plugin.BandanaPluginStateStore.load(BandanaPluginStateStore.java:69)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.lambda$load$0(CachingPluginStateStore.java:44)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)
?? ?at java.util.Optional.orElseGet(Optional.java:267)
?? ?at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)
?? ?at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)
?? ?at com.atlassian.confluence.plugin.CachingPluginStateStore.load(CachingPluginStateStore.java:43)
?? ?at com.atlassian.plugin.manager.PluginPersistentStateModifier.getState(PluginPersistentStateModifier.java:18)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.getState(DefaultPluginManager.java:1090)
?? ?at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:540)
?? ?at com.atlassian.confluence.plugin.ConfluencePluginManager.earlyStartup(ConfluencePluginManager.java:143)
?? ?at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:71)
?? ?at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4884)
?? ?at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5347)
?? ?at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
?? ?at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
?? ?at java.util.concurrent.FutureTask.run(FutureTask.java:266)
?? ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
?? ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
?? ?at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$767ea2cd.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy53.getTransaction(Unknown Source)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:427)
?? ?at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:276)
?? ?at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
?? ?at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
?? ?at com.sun.proxy.$Proxy55.retrieve(Unknown Source)
?? ?at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)
?? ?at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)
?? ?at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)
?? ?at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)
?? ?... 33 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
?? ?at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
?? ?at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
?? ?at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
?? ?at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$71a99ff8.createTenantedDelegate(<generated>)
?? ?at com.atlassian.confluence.tenant.TenantGate$2.getTarget(TenantGate.java:114)
?? ?at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:187)
?? ?at com.sun.proxy.$Proxy54.getProperties(Unknown Source)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
?? ?at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
?? ?at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
?? ?at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
?? ?at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
?? ?at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 54 more
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
?? ?at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)
?? ?at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:691)
?? ?at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:502)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.buildSessionFactory(ConfigurableLocalSessionFactoryBean.java:150)
?? ?at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:486)
?? ?at bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:141)
?? ?at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:37)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
?? ?at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
?? ?... 75 more
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.atlassian.hibernate.dialect.HSQL2Dialect] as strategy [org.hibernate.dialect.Dialect]
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:152)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:139)
?? ?at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:133)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:74)
?? ?at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:51)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
?? ?at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
?? ?at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
?? ?at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
?? ?... 95 more
2018-06-26 12:44:50,675 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#0] [mchange.v2.resourcepool.BasicResourcePool] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@3b9c1676 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
java.lang.NullPointerException
?? ?at org.postgresql.Driver.parseURL(Driver.java:531)
?? ?at org.postgresql.Driver.acceptsURL(Driver.java:463)
?? ?at java.sql.DriverManager.getDriver(DriverManager.java:299)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
?? ?at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
?? ?at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
2018-06-26 12:44:50,675 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|708e5c33]-HelperThread-#0] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@ba4fce1 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:45:13,497 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#1] [mchange.v2.resourcepool.BasicResourcePool] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@794685e3 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
java.lang.NullPointerException
?? ?at org.postgresql.Driver.parseURL(Driver.java:531)
?? ?at org.postgresql.Driver.acceptsURL(Driver.java:463)
?? ?at java.sql.DriverManager.getDriver(DriverManager.java:299)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:285)
?? ?at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
?? ?at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
?? ?at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
?? ?at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
?? ?at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
```


author: Flatirons Project
body: More errors:

```
2018-06-26 12:44:42,993 WARN [C3P0PooledConnectionPoolManager[identityToken->1bradps9wgx31dc1lvilam|682d1434]-HelperThread-#2] [mchange.v2.resourcepool.BasicResourcePool] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@2e6c2041 is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
2018-06-26 12:44:42,995 WARN [localhost-startStop-1] [jdbc.env.internal.JdbcEnvironmentInitiator] initiateService HHH000342: Could not obtain connection to query metadata : Connections could not be acquired from the underlying database!

```


author: Nic Brough -Adaptavist-
body: The log should be telling us something, I'm afraid you're going to need to share them and look for errors in them.

There's one exception, where Confluence is running fine, but you're looking in the wrong place for it - that will not show in the log. Check your server.xml file - does it have a "context" set in it? If it is set to "", then we need to start looking at logs, but if it is set to something like "/confluence" or "/docs", then look there instead - try \<localhost-ip\>:8090/confluence or whatever you have in the context path.

comments: author: Flatirons Project
body: Here is my server.xml. This system was built with a fresh 5.7.4 confluence with the embedded database since it is only a 10 user system. I created an account and added some content and then ran the .bin 6.9.1 installer. This is running on CentOS 7.5 if that helps any.

```
<Server port="8000" shutdown="SHUTDOWN" debug="0">
??? <Service name="Tomcat-Standalone">
??????? <!--
???????? ==============================================================================================================
???????? DEFAULT - Direct connector with no proxy, for unproxied HTTP access to Confluence.

???????? If using a http/https proxy, comment out this connector.
???????? ==============================================================================================================
??????? -->
??????? <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
?????????????????? maxThreads="48" minSpareThreads="10"
?????????????????? enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
?????????????????? protocol="org.apache.coyote.http11.Http11NioProtocol"/>
??????? <!--
???????? ==============================================================================================================
???????? HTTP - Proxying Confluence via Apache or Nginx over HTTP

???????? If you're proxying traffic to Confluence over HTTP, uncomment the connector below and comment out the others.
???????? Make sure you provide the right information for proxyName and proxyPort.

???????? For more information see:
??????????? Apache - https://confluence.atlassian.com/x/4xQLM
??????????? nginx? - https://confluence.atlassian.com/x/TgSvEg

???????? ==============================================================================================================
??????? -->

??????? <!--
??????? <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
?????????????????? maxThreads="48" minSpareThreads="10"
?????????????????? enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
?????????????????? protocol="org.apache.coyote.http11.Http11NioProtocol"
?????????????????? scheme="http" proxyName="<subdomain>.<domain>.com" proxyPort="80"/>
??????? -->
?????? ?
??????? <!--
???????? ==============================================================================================================
???????? HTTPS - Direct connector with no proxy, for unproxied HTTPS access to Confluence.

???????? For more info see https://confluence.atlassian.com/x/s3UC
???????? ==============================================================================================================
??????? -->

??????? <!--
??????? <Connector port="8443" maxHttpHeaderSize="8192"
?????????????????? maxThreads="150" minSpareThreads="25"
?????????????????? protocol="org.apache.coyote.http11.Http11NioProtocol"
?????????????????? enableLookups="false" disableUploadTimeout="true"
?????????????????? acceptCount="100" scheme="https" secure="true"
?????????????????? clientAuth="false" sslProtocol="TLSv1.2" sslEnabledProtocols="TLSv1.2" SSLEnabled="true"
?????????????????? URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/>
??????? -->

??????? <!--
???????? ==============================================================================================================
???????? HTTPS - Proxying Confluence via Apache or Nginx over HTTPS

???????? If you're proxying traffic to Confluence over HTTPS, uncomment the connector below and comment out the others.
???????? Make sure you provide the right information for proxyName and proxyPort.

???????? For more information see:
??????????? Apache - https://confluence.atlassian.com/x/PTT3MQ
??????????? nginx? - https://confluence.atlassian.com/x/cNIvMw
???????? ==============================================================================================================
??????? -->

??????? <!--
??????? <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
?????????????????? maxThreads="48" minSpareThreads="10"
?????????????????? enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
?????????????????? protocol="org.apache.coyote.http11.Http11NioProtocol"
?????????????????? scheme="https" proxyName="<subdomain>.<domain>.com" proxyPort="443"/>
??????? -->

??????? <Engine name="Standalone" defaultHost="localhost" debug="0">
??????????? <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
??????????????? <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
??????????????????? <!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
??????????????????? <Manager pathname=""/>
??????????????????? <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
??????????????? </Context>

??????????????? <Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0"
???????????????????????? reloadable="false" useHttpOnly="true">
??????????????????? <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
??????????????? </Context>
??????????? </Host>
??????? </Engine>
??? </Service>
</Server>
```


author: Flatirons Project
body: Same thing happens when I got to http://\<localhost-ip\>:8090/confluence


author: Flatirons Project
body: gc-2018-06-26_09-25-07.log.0.current

```
2018-06-26T09:55:48.307-0400: 1840.908: [GC pause (G1 Evacuation Pause) (young) 798M->231M(1024M), 0.1127516 secs]
2018-06-26T09:57:49.847-0400: 1962.448: [GC pause (G1 Evacuation Pause) (young) 799M->232M(1024M), 0.1198118 secs]
2018-06-26T10:00:21.462-0400: 2114.063: [GC pause (G1 Evacuation Pause) (young) 798M->234M(1024M), 0.1248519 secs]
2018-06-26T10:02:22.273-0400: 2234.873: [GC pause (G1 Evacuation Pause) (young) 797M->233M(1024M), 0.1262178 secs]
2018-06-26T10:05:24.160-0400: 2416.761: [GC pause (G1 Evacuation Pause) (young) 800M->235M(1024M), 0.2092269 secs]
```

catalina.out

```
26-Jun-2018 09:25:07.831 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:07.929 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:07.944 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:07.947 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:08.017 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:08.048 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
26-Jun-2018 09:25:08.551 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
26-Jun-2018 09:25:08.576 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
26-Jun-2018 09:25:08.602 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 912 ms
26-Jun-2018 09:25:08.617 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone
26-Jun-2018 09:25:08.617 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.51
26-Jun-2018 09:25:11.900 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: [com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@25cd67d6]
2018-06-26 09:25:12,388 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 6.9.1 [build 7701 based on commit hash 88819522251e178b5cc83bc1e3ddc18a884c1aed] - synchrony version 2.1.0-master-ed94c233
26-Jun-2018 09:25:12.439 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'
26-Jun-2018 09:25:12.439 INFO [localhost-startStop-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization started
26-Jun-2018 09:25:12.446 INFO [localhost-startStop-2] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Tue Jun 26 09:25:12 EDT 2018]; root of context hierarchy
26-Jun-2018 09:25:12.760 INFO [localhost-startStop-2] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions Registering annotated classes: [class com.atlassian.synchrony.proxy.websocket.WebSocketConfig,class com.atlassian.synchrony.proxy.web.SynchronyWebMvcConfig]
26-Jun-2018 09:25:14.206 INFO [localhost-startStop-2] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.initialize Initializing ExecutorService? 'defaultSockJsTaskScheduler'
26-Jun-2018 09:25:14.406 INFO [localhost-startStop-2] org.springframework.web.socket.server.support.WebSocketHandlerMapping.registerHandler Mapped URL path [/v1/bayeux-sync1] onto handler of type [class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler]
26-Jun-2018 09:25:16.056 INFO [localhost-startStop-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/healthcheck]}" onto public com.atlassian.synchrony.proxy.web.HealthCheckResult com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.getSynchronyProxyInfo()
26-Jun-2018 09:25:16.057 INFO [localhost-startStop-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/reload],methods=[PUT]}" onto public org.springframework.http.ResponseEntity com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.reloadConfiguration(com.atlassian.synchrony.proxy.web.SynchronyProxyConfigPayload)
26-Jun-2018 09:25:16.106 INFO [localhost-startStop-2] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler]
26-Jun-2018 09:25:16.202 INFO [localhost-startStop-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date [Tue Jun 26 09:25:12 EDT 2018]; root of context hierarchy
26-Jun-2018 09:25:16.489 INFO [localhost-startStop-2] org.springframework.context.support.DefaultLifecycleProcessor.start Starting beans in phase 2147483647
26-Jun-2018 09:25:16.567 INFO [localhost-startStop-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 4128 ms
2018-06-26 09:25:19,278 INFO [localhost-startStop-1] [atlassian.confluence.cluster.DefaultClusterConfigurationHelper] lambda$populateExistingClusterSetupConfig$1 Populating setup configuration if running with Cluster mode...
```

synchrony-proxy-watchdog.log

```
2018-06-26 07:06:51,133 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
2018-06-26 07:42:20,127 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
2018-06-26 09:24:34,099 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
2018-06-26 09:25:07,378 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
?
```