Application logs contain error for "confluence.extra.webdav:ConfluenceDavSessionInvalidatorJob"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Symptoms

A scheduled job for ConfluenceDavSessionInvalidator job runs every 5 minutes and fails in the atlassian-confluence.log.

Diagnosis

A stack trace such as the one below will appear in the atlassian-confluence.log every 5 minutes or so:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 ERROR [Caesium-1-2] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job confluence.extra.webdav:confluenceDavSessionInvalidatorJob#confluenceDavSessionInvalidatorJobTrigger failed to run java.lang.ClassCastException: class java.lang.String cannot be cast to class com.atlassian.confluence.extra.webdav.ConfluenceDavSession (java.lang.String is in module java.base of loader 'bootstrap'; com.atlassian.confluence.extra.webdav.ConfluenceDavSession is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @2047378a) at com.atlassian.confluence.extra.webdav.BandanaConfluenceDavSessionStore.getSession(BandanaConfluenceDavSessionStore.java:59) at com.atlassian.confluence.extra.webdav.BandanaConfluenceDavSessionStore.invalidateExpiredSessions(BandanaConfluenceDavSessionStore.java:77) at com.atlassian.confluence.extra.webdav.job.ConfluenceDavSessionInvalidatorJob.runJob(ConfluenceDavSessionInvalidatorJob.java:32) at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117) at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:87) at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84) at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68) at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:87) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:435) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:402) at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:380) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60) at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35) at java.base/java.lang.Thread.run(Thread.java:834) 2020-05-07 08:10:00,012 WARN [Caesium-1-2] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job confluence.extra.webdav:confluenceDavSessionInvalidatorJob#confluenceDavSessionInvalidatorJobTrigger completed unsuccessfully with response JobRunnerResponse[runOutcome=FAILED,message='ClassCastException: class java.lang.String cannot be cast to class com.atlassian.confluence.extra.webdav.ConfluenceDavSession (java.lang.String is in module java.base of loader 'bootstrap'; com.atlassian.confluence.extra.webdav.ConfluenceDavSession is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @2047378a)

Cause

Corrupted data within the BANDANA table of the Confluence database.

Solution

Resolution

  1. Shut down Confluence

  2. ⚠️ Take a backup of the database, confluence home and install directories.

  3. Run the following query and provide the output to the Confluence Support team if you'd like a confirmation of the issue:

    1 select * from bandana where bandanacontext = 'com.atlassian.confluence.extra.webdav.sessions';
  4. Run the following SQL query:

    1 delete from bandana where bandanacontext = 'com.atlassian.confluence.extra.webdav.sessions';
  5. ℹ️ Since this query will clear all webdav user sessions, users will need to re-authenticate through their clients to keep using webdav.

  6. Clear the plugin cache.

  7. Start Confluence.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.