java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem

Atlassian JIRA | Tim Wong [Atlassian] | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {code} 2009-03-13 03:00:00,011 ERROR [DefaultQuartzScheduler_Worker-0] [org.quartz.core.JobRunShell] run Job DEFAULT.clearOldMailErrorsJob threw an unhandled Exception: java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem at com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute(ClearOldMailErrors.java:33) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2009-03-13 03:00:00,041 ERROR [DefaultQuartzScheduler_Worker-0] [org.quartz.core.ErrorLogger] schedulerError Job (DEFAULT.clearOldMailErrorsJob threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem at com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute(ClearOldMailErrors.java:33) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {code}

    Atlassian JIRA | 8 years ago | Tim Wong [Atlassian]
    java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem
  2. 0

    {code} 2009-03-13 03:00:00,011 ERROR [DefaultQuartzScheduler_Worker-0] [org.quartz.core.JobRunShell] run Job DEFAULT.clearOldMailErrorsJob threw an unhandled Exception: java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem at com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute(ClearOldMailErrors.java:33) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2009-03-13 03:00:00,041 ERROR [DefaultQuartzScheduler_Worker-0] [org.quartz.core.ErrorLogger] schedulerError Job (DEFAULT.clearOldMailErrorsJob threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem at com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute(ClearOldMailErrors.java:33) at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {code}

    Atlassian JIRA | 8 years ago | Tim Wong [Atlassian]
    java.lang.ClassCastException: com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.atlassian.confluence.mail.template.ConfluenceMailQueueItem cannot be cast to com.atlassian.confluence.mail.template.MailNotificationQueueItem

      at com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute()
    2. com.atlassian.confluence
      ClearOldMailErrors.doExecute
      1. com.atlassian.confluence.mail.jobs.ClearOldMailErrors.doExecute(ClearOldMailErrors.java:33)
      1 frame
    3. com.atlassian.quartz
      AbstractJob.executeInternal
      1. com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87)
      1 frame
    4. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      1 frame
    5. com.atlassian.confluence
      AbstractClusterAwareQuartzJobBean.executeInternal
      1. com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16)
      2. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64)
      3. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)
      3 frames
    6. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      1 frame
    7. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2 frames