HTTP Status 500 - Cannot call sendError() after the response has been committed
Asked by Ph?m Ho?ng C??ng:

#### Description: {#toc-hId--539839379}

1) after input the licence and setup the DB information (DB connection test successes), page print out this:

![6.png](https://community.atlassian.com/t5/image/serverpage/image-id/150372iEF73CC4DF0082CFF/image-size/large?v=v2&px=999 "6.png")

2) then, I try to refresh the page several times, and new page come up:

![8.png](https://community.atlassian.com/t5/image/serverpage/image-id/150373i0A49B2F1E1ECAECB/image-size/large?v=v2&px=999 "8.png")![9.png](https://community.atlassian.com/t5/image/serverpage/image-id/150374iF74518FBF5FB81EE/image-size/large?v=v2&px=999 "9.png")

#### Using: {#toc-hId-1947673454}

- Setup Database in AWS RDS PostgreSQL - version 10.17

- Setup Confluence version 7.12.0 with AWS ELB and AutoScaling group

#### Log: {#toc-hId-140218991}

Catalina.out:

```
07-Jul-2021 11:39:11.799 SEVERE [http-nio-8090-exec-2] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, locatio n=/500page.jsp]
org.apache.jasper.JasperException: An exception occurred processing [/500page.jsp] at line [119]

116:
117: if (sysInfoService != null)
118: {
119: confluenceInfo = sysInfoService.getConfluenceInfo();
120: memoryInfo = sysInfoService.getMemoryInfo();
121: dbInfo = sysInfoService.getSafeDatabaseInfo();
122: sysinfo = GeneralUtil.convertBeanToMap(sysInfoService.getSystemProperties());


Stacktrace:
07-Jul-2021 11:39:11.801 SEVERE [http-nio-8090-exec-8] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, locatio n=/500page.jsp]
org.apache.jasper.JasperException: An exception occurred processing [/500page.jsp] at line [119]

116:
117: if (sysInfoService != null)
118: {
119: confluenceInfo = sysInfoService.getConfluenceInfo();
120: memoryInfo = sysInfoService.getMemoryInfo();
121: dbInfo = sysInfoService.getSafeDatabaseInfo();
122: sysinfo = GeneralUtil.convertBeanToMap(sysInfoService.getSystemProperties());


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:626)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:510)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at com.atlassian.confluence.util.profiling.ProfilingSiteMeshFilter.doFilter(ProfilingSiteMeshFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.HttpSessionRegistrarFilter.doFilter(HttpSessionRegistrarFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:88)
at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.applyFilter(ConfluenceSecurityFilter.java:40)
at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:148)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.ZipkinTracingFilter.doFilter(ZipkinTracingFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:398)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:257)
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:352)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:880)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1601)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibern ate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.
at com.atlassian.confluence.impl.tenant.TenantedProxyFactory.lambda$throwVacantExceptionOnMethodCall$3(TenantedProxyFactory.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy217.getCurrentSession(Unknown Source)
at sun.reflect.GeneratedMethodAccessor323.invoke(Unknown Source)
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:343)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
at com.sun.proxy.$Proxy217.getCurrentSession(Unknown Source)
at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:370)
at org.springframework.orm.hibernate5.HibernateTemplate.execute(HibernateTemplate.java:337)
at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getRecord(HibernateConfluenceBandanaRe cordDao.java:48)
at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)
at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
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:343)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy222.retrieve(Unknown Source)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.lambda$retrieve$0(ReadThroughCachingBandanaPersister.java:84)
at com.atlassian.confluence.impl.cache.ReadThroughAtlassianCache.lambda$get$0(ReadThroughAtlassianCache.java:76)
at com.atlassian.cache.hazelcast.HazelcastCache.getOrLoad(HazelcastCache.java:318)
at com.atlassian.cache.hazelcast.HazelcastCache.get(HazelcastCache.java:125)
at com.atlassian.confluence.cache.DefaultConfluenceCache.get(DefaultConfluenceCache.java:53)
at com.atlassian.confluence.cache.ConfluenceMonitoringCache.get(ConfluenceMonitoringCache.java:57)
at com.atlassian.confluence.impl.cache.ReadThroughAtlassianCache.get(ReadThroughAtlassianCache.java:88)
at com.atlassian.confluence.impl.cache.ReadThroughCache.get(ReadThroughCache.java:28)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.retrieve(ReadThroughCachingBandanaPersister.java:82)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.retrieve(ReadThroughCachingBandanaPersister.java:75)
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
at com.atlassian.confluence.status.service.DefaultSystemInformationService.getConfluenceInfo(DefaultSystemInformationService.java:127)
at org.apache.jsp._500page_jsp._jspService(_500page_jsp.java:282)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
... 75 more
07-Jul-2021 11:39:11.808 SEVERE [http-nio-8090-exec-5] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, locatio n=/500page.jsp]
org.apache.jasper.JasperException: An exception occurred processing [/500page.jsp] at line [119]

116:
117: if (sysInfoService != null)
118: {
119: confluenceInfo = sysInfoService.getConfluenceInfo();
120: memoryInfo = sysInfoService.getMemoryInfo();
121: dbInfo = sysInfoService.getSafeDatabaseInfo();
122: sysinfo = GeneralUtil.convertBeanToMap(sysInfoService.getSystemProperties());


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:626)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:510)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
at com.atlassian.confluence.util.profiling.ProfilingSiteMeshFilter.doFilter(ProfilingSiteMeshFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.HttpSessionRegistrarFilter.doFilter(HttpSessionRegistrarFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:88)
at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.applyFilter(ConfluenceSecurityFilter.java:40)
at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:29)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:148)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:49)
at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:43)
at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.ja va:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.ZipkinTracingFilter.doFilter(ZipkinTracingFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:398)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:257)
at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:352)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:880)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1601)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibern ate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.
at com.atlassian.confluence.impl.tenant.TenantedProxyFactory.lambda$throwVacantExceptionOnMethodCall$3(TenantedProxyFactory.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy217.getCurrentSession(Unknown Source)
at sun.reflect.GeneratedMethodAccessor323.invoke(Unknown Source)
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:343)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
at com.sun.proxy.$Proxy217.getCurrentSession(Unknown Source)
at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:370)
at org.springframework.orm.hibernate5.HibernateTemplate.execute(HibernateTemplate.java:337)
at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getRecord(HibernateConfluenceBandanaRe cordDao.java:48)
at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)
at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
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:343)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy222.retrieve(Unknown Source)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.lambda$retrieve$0(ReadThroughCachingBandanaPersister.java:84)
at com.atlassian.confluence.impl.cache.ReadThroughAtlassianCache.lambda$get$0(ReadThroughAtlassianCache.java:76)
at com.atlassian.cache.hazelcast.HazelcastCache.getOrLoad(HazelcastCache.java:318)
at com.atlassian.cache.hazelcast.HazelcastCache.get(HazelcastCache.java:125)
at com.atlassian.confluence.cache.DefaultConfluenceCache.get(DefaultConfluenceCache.java:53)
at com.atlassian.confluence.cache.ConfluenceMonitoringCache.get(ConfluenceMonitoringCache.java:57)
at com.atlassian.confluence.impl.cache.ReadThroughAtlassianCache.get(ReadThroughAtlassianCache.java:88)
at com.atlassian.confluence.impl.cache.ReadThroughCache.get(ReadThroughCache.java:28)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.retrieve(ReadThroughCachingBandanaPersister.java:82)
at com.atlassian.confluence.impl.bandana.ReadThroughCachingBandanaPersister.retrieve(ReadThroughCachingBandanaPersister.java:75)
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
at com.atlassian.confluence.status.service.DefaultSystemInformationService.getConfluenceInfo(DefaultSystemInformationService.java:127)
at org.apache.jsp._500page_jsp._jspService(_500page_jsp.java:282)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477)
... 75 more
```

conf_access_log.log:

```
[07/Jul/2021:11:53:41 +0000] - http-nio-8090-exec-2 10.20.1.101 GET / HTTP/1.1 302 2ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:53:52 +0000] - http-nio-8090-exec-1 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:54:11 +0000] - http-nio-8090-exec-9 10.20.1.101 GET / HTTP/1.1 302 6ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:54:22 +0000] - http-nio-8090-exec-8 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:54:41 +0000] - http-nio-8090-exec-6 10.20.1.101 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:54:52 +0000] - http-nio-8090-exec-3 10.20.0.102 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:55:11 +0000] - http-nio-8090-exec-10 10.20.1.101 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:55:22 +0000] - http-nio-8090-exec-7 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:55:41 +0000] - http-nio-8090-exec-4 10.20.1.101 GET / HTTP/1.1 302 2ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:55:52 +0000] - http-nio-8090-exec-5 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:56:12 +0000] - http-nio-8090-exec-2 10.20.1.101 GET / HTTP/1.1 302 6ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:56:22 +0000] - http-nio-8090-exec-1 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:56:42 +0000] - http-nio-8090-exec-9 10.20.1.101 GET / HTTP/1.1 302 2ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:56:52 +0000] - http-nio-8090-exec-8 10.20.0.102 GET / HTTP/1.1 302 2ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:57:12 +0000] - http-nio-8090-exec-6 10.20.1.101 GET / HTTP/1.1 302 5ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:57:22 +0000] - http-nio-8090-exec-3 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:57:42 +0000] - http-nio-8090-exec-10 10.20.1.101 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:57:52 +0000] - http-nio-8090-exec-7 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:58:12 +0000] - http-nio-8090-exec-4 10.20.1.101 GET / HTTP/1.1 302 4ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:58:22 +0000] - http-nio-8090-exec-5 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:58:42 +0000] - http-nio-8090-exec-2 10.20.1.101 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:58:52 +0000] - http-nio-8090-exec-1 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:59:12 +0000] - http-nio-8090-exec-9 10.20.1.101 GET / HTTP/1.1 302 3ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:59:22 +0000] - http-nio-8090-exec-8 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:59:42 +0000] - http-nio-8090-exec-6 10.20.1.101 GET / HTTP/1.1 302 5ms - - ELB-HealthChecker/2.0
[07/Jul/2021:11:59:52 +0000] - http-nio-8090-exec-3 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:00:12 +0000] - http-nio-8090-exec-10 10.20.1.101 GET / HTTP/1.1 302 13ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:00:22 +0000] - http-nio-8090-exec-7 10.20.0.102 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:00:42 +0000] - http-nio-8090-exec-4 10.20.1.101 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:00:52 +0000] - http-nio-8090-exec-5 10.20.0.102 GET / HTTP/1.1 302 7ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:01:12 +0000] - http-nio-8090-exec-2 10.20.1.101 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:01:22 +0000] - http-nio-8090-exec-1 10.20.0.102 GET / HTTP/1.1 302 2ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:01:42 +0000] - http-nio-8090-exec-9 10.20.1.101 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:01:52 +0000] - http-nio-8090-exec-8 10.20.0.102 GET / HTTP/1.1 302 4ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:02:12 +0000] - http-nio-8090-exec-6 10.20.1.101 GET / HTTP/1.1 302 1ms - - ELB-HealthChecker/2.0
[07/Jul/2021:12:02:22 +0000] - http-nio-8090-exec-3 10.20.0.102 GET / HTTP/1.1 302 6ms - - ELB-HealthChecker/2.0

```

atlassian-confluece-index.log:

```
2021-07-07 11:41:13,085 INFO [http-nio-8090-exec-4] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog
Request Unique ID : fde077b1-61a3-4642-88d4-eb3fabfa9934
--------------------------
JVM Stats
--------------------------
xmx = 1073741824
usedNonHeap = 490824080
availableHeap = 492720088
availableNonHeap = -1
allocatedHeap = 1073741824
freeAllocatedHeap = 492720088
maxNonHeap = -1
availablePermGen = 0
maxPermGen = -1
maxHeap = 1073741824
usedHeap = 581021736
usedPermGen = -1
xms = 1073741824
--------------------------
Request Information
--------------------------
URL: http://confluence-loadbalancer-241962434.us-east-1.elb.amazonaws.com/500page.jsp
Scheme: http
Server: confluence-loadbalancer-241962434.us-east-1.elb.amazonaws.com
Port: 80
URI: /500page.jsp
Context Path:
Servlet Path: /500page.jsp
Path Info: null
Query String: locale=en-GB
--------------------------
Attributes
--------------------------
javax.servlet.forward.request_uri: /s/b6228de4ad65f917b7cffe81f9befc99-CDN/u51ia6/8703/m8xn6n/f3869b75755789b7517c0f7fc23e6d96/_/download/contextbatch/js/setup,-_super/batch.js
javax.servlet.forward.context_path:
javax.servlet.forward.servlet_path: /s
javax.servlet.forward.path_info: /b6228de4ad65f917b7cffe81f9befc99-CDN/u51ia6/8703/m8xn6n/f3869b75755789b7517c0f7fc23e6d96/_/download/contextbatch/js/setup,-_super/batch.js
javax.servlet.forward.query_string: locale=en-GB
javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@2b15e772
org.apache.catalina.AccessLog.RemoteAddr: 113.185.46.154
javax.servlet.error.status_code: 500
_statichash: b6228de4ad65f917b7cffe81f9befc99-CDN/u51ia6/8703/m8xn6n/f3869b75755789b7517c0f7fc23e6d96
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@139bbdf1
com.opensymphony.sitemesh.APPLIED_ONCE: true
__cleanup_recursion_counter: 0
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true
com.atlassian.labs.botkiller.BotKillerFilter: true
org.apache.catalina.AccessLog.Protocol: HTTP/1.1
com.atlassian.gzipfilter.GzipFilter_already_filtered: true
Confluence-Request-Time: 1625658073059
org.apache.catalina.AccessLog.ServerPort: 80
javax.servlet.error.message:
javax.servlet.error.servlet_name: noop
org.apache.tomcat.request.forwarded: true
org.apache.tomcat.remoteAddr: 113.185.46.154
org.apache.catalina.AccessLog.ServerName: confluence-loadbalancer-241962434.us-east-1.elb.amazonaws.com
B3-TraceId: 85db8a81f2f234
javax.servlet.error.request_uri: /s/b6228de4ad65f917b7cffe81f9befc99-CDN/u51ia6/8703/m8xn6n/f3869b75755789b7517c0f7fc23e6d96/_/download/contextbatch/js/setup,-_super/batch.js
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true
org.apache.catalina.AccessLog.RemoteHost: 113.185.46.154
javax.servlet.error.exception: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true
--------------------------
Parameters
--------------------------
locale : en-GB
caused by: com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
caused by: java.lang.IllegalStateException: Container is not setup
at com.atlassian.spring.container.LazyComponentReference.create(LazyComponentReference.java:41)

```

I had search for this issue, but cannot find any help. Could someone help me with this. Thanks


Answers:
author: Shannon S
body: Hello [@Ph?m Ho?ng C??ng](/t5/user/viewprofilepage/user-id/4318980),

Welcome to Atlassian Community. It's nice to have you join us! When you logged this question, you told us you are using Confluence Cloud Free. However, your question tells me that you're using Confluence Server/Data Center version 7.12.

The error you're encountering upon installation is widespread, and it tends to indicate issues with the database setup. First, please review this article in its entirety to learn how to solve the problem.

* [Confluence does not start due to Spring Application Context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html).

If it doesn't solve your issue, you want to [raise a ticket with the Confluence Server/DC support team](https://support.atlassian.com/contact). We need to look at your installation and log files, and we can't do that via Community.

Thank you for your understanding!

Take care,

Shannon

comments: author: Ph?m Ho?ng C??ng
body: Thanks for your suggestion. I had raise ticket for support team, and get the answer. I would like to update as below if someone have the same issues.

This is the error related to the revert proxy. Because the revert proxy getting timeout before the database setup complete. **With nginx**, we can follow this solution.

[https://jira.atlassian.com/browse/CONFSERVER-56560?error=login_required\&error_description=Login+required\&state=7c73d4cb-f1a0-4e04-97e2-2a092df39cd9](https://jira.atlassian.com/browse/CONFSERVER-56560?error=login_required&error_description=Login+required&state=7c73d4cb-f1a0-4e04-97e2-2a092df39cd9)

**With AWS ELB,** we can work around by:

As soon as input db information, then you press **Next** , immediately **close any browser tabs pointing to Confluence install**.

We can then check \<confluence-home\>/logs/atlassian-confluence.log for when the DB setup is still progressing, represented by this line:

```
[atlassian.plugin.manager.DefaultPluginManager] logTime Plugin system earlyStartup ended
```

Once you see the above line, **wait a further 5 minutes**, then reopen the Browser to navigate back to Confluence


Tags: cloud

confluence-cloud