Mail polling fails after upgrade to Confluence 4.2.1

I have just upgraded our Confluence installation from version 4.1 to 4.2.1.

The mail polling feature stopped working after the upgrade, with an exception being logged every minute when the poller tries to run. That means that no new mail is picked up by Confluence. The rest of Confluence seems to be working fine, it's just the mail poller which is failing.

I have temporarily stopped the problem by disabling the 'Poll Mail' job in Administration > Scheduled Jobs. However of course we'd like to fix the problem and turn it back on.

Note that picking up the mail manually does work correctly -- ie Navigate to the workspace in Confluence, click Browse, click Mail, click 'Fetch new mail'. This will pick up the new mail just fine, without any exception being thrown. So it is only the 'Mail Poll' job which is causing the exception.

Here is a full copy of the exception that is thrown when the mail poller runs:

2012-04-30 19:12:00,132 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_AA83CB7B4ABD284FB96ADDA7C920xxxxxxxxxxxxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,135 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,135 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@7a8f0f82] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,156 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_1fc6a4d6eba74791653bd402f2xxxxxxxxxxxxxxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,159 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,160 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@7e246fea] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,186 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/related;
       boundary="_004_4cdd42e851494296ade068195f374xxxxxxxxxxxxxxxxx_";
       type="multipart/alternative"
2012-04-30 19:12:00,187 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_4cdd42e851494296ade068195f374xxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,187 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'image/jpeg; name="image064cf4.JPG"
2012-04-30 19:12:00,189 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,189 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@3c32b2ae] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,208 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_2d41c1c608e2ece036da0c0b1c72xxxxxxxxxxxxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,210 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,210 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@6afd6c71] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,230 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_417CBFB3FF7D284382B4FB895436xxxxxxxxxxxxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,232 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,233 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@17536a1b] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,255 WARN [scheduler_Worker-7] [com.atlassian.mail.MailUtils] extractTextFromPart Unable to extract text from MIME part with Content-Type 'multipart/alternative;
       boundary="_000_6e68110fdbc2cc35015725ee61xxxxxxxxxxxxxxxxxxxxxxxxxxxxx_"
2012-04-30 19:12:00,257 WARN [scheduler_Worker-7] [mail.archive.content.DefaultMailContentManager] storeIncomingMail Could not store mail message Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
2012-04-30 19:12:00,257 WARN [scheduler_Worker-7] [confluence.mail.archive.DefaultMailAccountManager] retrieveMessages Could not store message within Confluence: [javax.mail.internet.MimeMessage@28ef13c9] - this message will be left on the server
com.atlassian.confluence.core.ConfluenceException: Could not store incoming mail: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:140)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.retrieveMessages(DefaultMailAccountManager.java:172)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:117)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:81)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER): Turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition.
       at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(HibernateTemplate.java:1000)
       at org.springframework.orm.hibernate.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:603)
       at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
       at org.springframework.orm.hibernate.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:601)
       at com.atlassian.hibernate.HibernateObjectDao.saveRaw(HibernateObjectDao.java:156)
       at com.atlassian.hibernate.HibernateObjectDao.save(HibernateObjectDao.java:126)
       at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:44)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy251.saveContentEntity(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor497.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy251.saveContentEntity(Unknown Source)
       at com.atlassian.confluence.mail.archive.content.DefaultMailContentManager.storeIncomingMail(DefaultMailContentManager.java:133)
       ... 10 more
2012-04-30 19:12:00,266 WARN [scheduler_Worker-7] [confluence.setup.bandana.ConfluenceDaoBandanaPersister] getObjectFromValue Configuration could not be loaded because class could not be found (context: TESTNET, key: atlassian.confluence.space.mailaccounts).
com.thoughtworks.xstream.converters.ConversionException: imapMailAccount : imapMailAccount
---- Debugging information ----
message             : imapMailAccount : imapMailAccount
line number         : 2
path                : /list/imapMailAccount
cause-message       : imapMailAccount : imapMailAccount
class               : java.util.List
cause-exception     : com.thoughtworks.xstream.alias.CannotResolveClassException
required-type       : java.util.List
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: imapMailAccount : imapMailAccount
---- Debugging information ----
message             : imapMailAccount : imapMailAccount
line number         : 2
path                : /list/imapMailAccount
cause-message       : imapMailAccount : imapMailAccount
class               : java.util.List
cause-exception     : com.thoughtworks.xstream.alias.CannotResolveClassException
required-type       : java.util.List
-------------------------------
       at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:45)
       at com.thoughtworks.xstream.core.ReferenceByXPathUnmarshaller.convertAnother(ReferenceByXPathUnmarshaller.java:39)
       at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:99)
       at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:12)
       at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:549)
       at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:537)
       at com.thoughtworks.xstream.XStream.fromXML(XStream.java:505)
       at com.atlassian.confluence.setup.bandana.XStreamBandanaSerializer.deserialize(XStreamBandanaSerializer.java:27)
       at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.getObjectFromValue(ConfluenceDaoBandanaPersister.java:107)
       at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)
       at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
       at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
       at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
       at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
       at $Proxy0.retrieve(Unknown Source)
       at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:65)
       at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
       at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
       at $Proxy152.getValue(Unknown Source)
       at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
       at $Proxy152.getValue(Unknown Source)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.getMailAccounts(DefaultMailAccountManager.java:194)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:75)
       at com.atlassian.confluence.mail.archive.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:273)
       at com.atlassian.confluence.mail.archive.jobs.MailPollJob.doExecute(MailPollJob.java:29)
       at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:86)
       at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
       at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: com.thoughtworks.xstream.alias.CannotResolveClassException: imapMailAccount : imapMailAccount
       at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:35)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.XmlFriendlyMapper.realClass(XmlFriendlyMapper.java:44)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.AliasingMapper.realClass(AliasingMapper.java:49)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:46)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:52)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
       at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:28)
       at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:78)
       at com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:60)
       at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:53)
       at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:38)
       ... 40 more

1 answer

1 accepted

This is a confirmed bug which has been filed here: https://jira.atlassian.com/browse/CONF-25409. Watch the page for future updates by our development team.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

273 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you