com.atlassian.workcontext.exception.WorkContextSeveredException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3. Summary The Mail Queue Service fails to initialise correctly after an upgrade. Outgoing Mails queue up in the queue and are not sent. Customers don't receive notifications h3. Logs {noformat} 2016-09-03 07:50:00,069 Caesium-1-1 ERROR anonymous Mail Queue Service [c.a.jira.service.ServiceRunner] An error occurred while trying to run service 'Mail Queue Service'. Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214} com.atlassian.workcontext.exception.WorkContextSeveredException: Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214} at com.atlassian.workcontext.api.PrivateWorkContext.lambda$getLocalMap$0(PrivateWorkContext.java:143) at java.util.Optional.orElseThrow(Optional.java:290) at com.atlassian.workcontext.api.PrivateWorkContext.getLocalMap(PrivateWorkContext.java:143) at com.atlassian.workcontext.api.PrivateWorkContext.setLocal(PrivateWorkContext.java:151) at com.atlassian.workcontext.api.WorkContextLocal.set(WorkContextLocal.java:83) at com.atlassian.jira.security.JiraAuthenticationContextImpl.clearRequestCache(JiraAuthenticationContextImpl.java:58) at com.atlassian.jira.util.thread.JiraThreadLocalUtils.preCall(JiraThreadLocalUtils.java:71) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:59) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:63) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Workaround * Manually Flush the Email Queue. (sends queued emails but doesn't solve the problem) * Restart the instance for the service to be started correctly again. Please have the site Technical Contact raise a [Cloud Support request|https://support.atlassian.com] and provide the best time for a restart.
    via by Aulia Fajri [Atlassian],
    • com.atlassian.workcontext.exception.WorkContextSeveredException: Caesium-1-1 WorkContext has been severed: WorkContext{instanceId=6214} at com.atlassian.workcontext.api.PrivateWorkContext.lambda$getLocalMap$0(PrivateWorkContext.java:143) at java.util.Optional.orElseThrow(Optional.java:290) at com.atlassian.workcontext.api.PrivateWorkContext.getLocalMap(PrivateWorkContext.java:143) at com.atlassian.workcontext.api.PrivateWorkContext.setLocal(PrivateWorkContext.java:151) at com.atlassian.workcontext.api.WorkContextLocal.set(WorkContextLocal.java:83) at com.atlassian.jira.security.JiraAuthenticationContextImpl.clearRequestCache(JiraAuthenticationContextImpl.java:58) at com.atlassian.jira.util.thread.JiraThreadLocalUtils.preCall(JiraThreadLocalUtils.java:71) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:59) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:63) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.