cant start confluence
Asked by Shinal Pala:

I have a custom plugin in which I have built locally and i have also managed to start confluence locally. however when i attempt a dryrun of a release build confluence fails to start.

I have recently moved from using confluence-version 6.13.10 to 7.4.6.

pom.xml properties are as follows:

\<properties\>  
\<!-- The version of Confluence we want to develop against --\>  
\<confluence.version\>7.4.6\</confluence.version\>  

\<!-- The version of Confluence running when the test database was created --\>  
\<confluence.data.version\>7.4.6\</confluence.data.version\>  

\<!-- The version of AtlassianMavenPluginSystem (part of the SDK) we wish to use --\>  
\<amps.version\>6.3.21\</amps.version\>  

\<!-- testrunner runs the unit and integration tests --\>  
\<plugin.testrunner.version\>1.2.3\</plugin.testrunner.version\> \<!-- 2.0.1 is available --\>  

\<!-- Uncomment the following line to get the logs written to a file rather than stdout --\>  
\<!-- \<output.file\>C:/temp/confluenceSDK.log\</output.file\> --\>

\<!-- Occasionally need to upgrade to a newer version of the "spring scanner", but not clear why  
or what versions are supported and what they do :-( --\>  
\<atlassian.spring.scanner.version\>1.2.13\</atlassian.spring.scanner.version\>  
\<!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. --\>  
\<atlassian.plugin.key\>${project.groupId}.${project.artifactId}\</atlassian.plugin.key\>  
\<project.build.sourceEncoding\>UTF-8\</project.build.sourceEncoding\>  
\</properties\>

Error when doing a dryrun of the release build is:

\[INFO\] \[INFO\] \[talledLocalContainer\] 2021-04-12 09:30:51,200 ERROR \[main\] \[com.atlassian.threadlocal.BruteForceThreadLocalCleanup\] logErr Thread\[Caesium-1-2,5,Caesium-1\] created a ThreadLocal with key of type \[org.springframework.core.NamedThreadLocal\] (value \[Prototype beans currently in creation\]) and a value of type \[null\] (value \[null\]). This will be cleaned up  
\[INFO\] \[INFO\] \[talledLocalContainer\] 2021-04-12 09:30:51,202 ERROR \[Caesium-1-2\] \[plugins.edgeindex.job.EdgeIndexQueueFlusher\] lambda$null$0 Error performing index task: com.atlassian.confluence.plugins.edgeindex.lucene.tasks.ReIndexPermissionsIndexTask@692c29a2  
\[INFO\] \[INFO\] \[talledLocalContainer\] org.eclipse.gemini.blueprint.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:101)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:81)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:427)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:400)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy2384.getById(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.tasks.ReIndexPermissionsIndexTask.doReindex(ReIndexPermissionsIndexTask.java:73)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.tasks.ReIndexPermissionsIndexTask.lambda$perform$0(ReIndexPermissionsIndexTask.java:62)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.spring.component.SpringHostContextAccessor.lambda$doInTransaction$0(SpringHostContextAccessor.java:70)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy180.execute(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy180.execute(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.tasks.ReIndexPermissionsIndexTask.perform(ReIndexPermissionsIndexTask.java:60)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.job.EdgeIndexQueueFlusher.lambda$null$0(EdgeIndexQueueFlusher.java:35)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.fugue.Option$Some.foreach(Option.java:441)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.JournalEdgeIndexTaskQueue.lambda$processEntriesInternal$1(JournalEdgeIndexTaskQueue.java:97)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.journal.DefaultJournalService.lambda$convert$0(DefaultJournalService.java:83)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.journal.DefaultJournalManager.processEntries(DefaultJournalManager.java:81)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.journal.JournalManager.processNewEntries(JournalManager.java:101)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.journal.DefaultJournalService.processEntries(DefaultJournalService.java:40)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.api.service.journal.JournalService.processNewEntries(JournalService.java:100)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy385.processNewEntries(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy385.processNewEntries(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.JournalEdgeIndexTaskQueue.processEntriesInternal(JournalEdgeIndexTaskQueue.java:93)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.JournalEdgeIndexTaskQueue.lambda$processEntries$0(JournalEdgeIndexTaskQueue.java:85)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.spring.component.SpringHostContextAccessor.lambda$doInTransaction$0(SpringHostContextAccessor.java:70)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy180.execute(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.reflect.Method.invoke(Method.java:498)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.sun.proxy.$Proxy180.execute(Unknown Source)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.lucene.JournalEdgeIndexTaskQueue.processEntries(JournalEdgeIndexTaskQueue.java:82)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.job.EdgeIndexQueueFlusher.lambda$null$1(EdgeIndexQueueFlusher.java:33)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:491)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.job.EdgeIndexQueueFlusher.lambda$runJob$2(EdgeIndexQueueFlusher.java:33)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:524)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.plugins.edgeindex.job.EdgeIndexQueueFlusher.runJob(EdgeIndexQueueFlusher.java:33)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:87)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:87)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:435)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:402)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:380)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35)  
\[INFO\] \[INFO\] \[talledLocalContainer\] at java.lang.Thread.run(Thread.java:748)  
\[INFO\] \[INFO\] \[talledLocalContainer\] 2021-04-12 09:30:51,202 ERROR \[main\] \[com.atlassian.threadlocal.BruteForceThreadLocalCleanup\] logErr Thread\[Caesium-1-2,5,Caesium-1\] created a ThreadLocal with key of type \[org.springframework.core.NamedThreadLocal\] (value \[Prototype beans currently in creation\]) and a value of type \[null\] (value \[null\]). This will be cleaned up  
\[INFO\] \[INFO\] \[talledLocalContainer\] 2021-04-12 09:30:51,217 ERROR \[Caesium-1-2\] \[plugins.edgeindex.job.EdgeIndexQueueFlusher\] lambda$null$0 Error performing index task: com.atlassian.confluence.plugins.edgeindex.lucene.tasks.ReIndexPermissionsIndexTask@95ff47e  
\[INFO\] \[INFO\] \[talledLocalContainer\] org.eclipse.gemini.blueprint.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed

Any help would be appreciated.

Thanks


Answers:
author: Fabian Lim
body: Hi [@Shinal Pala](/t5/user/viewprofilepage/user-id/3948738)

For plugin dev questions, you may want to post them in the [dev community](https://community.developer.atlassian.com/) for a faster response.

Cheers.


Tags: confluence-server

server