Email Messages Are Not Sent Due to 'java.lang.ClassCastException com.atlassian.confluence.mail.template.ConfluenceMailQueueItem'

Still need help?

The Atlassian Community is here for you.

Ask the community


  1. One or more mail messages are not being sent.
  2. Indexing has some problem completing, resulting in search inconsistencies and outdated Recently Updated results.

The following appears in the atlassian-confluence.log (or atlassian-confluence-outgoing-mail.log from 7.11)

serviceAction Could not execute action
 -- url: /admin/mail/resenderrorqueue.action | userName: xxx
java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem
	at com.atlassian.confluence.admin.actions.mail.ViewMailQueueAction.doResend(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(


An import of external mailboxes resulted in corrupt email addresses. Notifications are being sent to an invalid address and failing. Valid emails may not be sent until the message with the invalid email is sent.


  1. Track down any invalid email addresses by looking in The Mail Queue.
  2. Check for the invalid addresses
  3. Remove the associated queue entries
  4. Flush the mail queue

Last modified on Jan 11, 2021

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.