Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-33875

Daily Summary Mail: Attempted to coerce undefined value into a string

      Since upgrading Confluence to 5.5 we get the following exception while confluence tries to send out the daily summary mail:

      2014-06-05 00:00:02,270 ERROR [scheduler_Worker-4] [confluence.mail.jobs.DefaultDailyReportManager] queueDailyReportEmail Failed to create daily report for user molden
      com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Mail.Utils.userLink: When evaluating "baseUrl() + '/display/~' + $user.name": Attempted to coerce undefined value into a string.
      	at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)
      	at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)
      	at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
      	at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)
      	at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:117)
      	at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52)
      	at sun.reflect.GeneratedMethodAccessor594.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
      	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
      	at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy904.render(Unknown Source)
      	at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:38)
      	at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:44)
      	at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:25)
      	at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.renderTemplate(AbstractMailNotificationQueueItem.java:316)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.access$301(PreRenderedMailNotificationQueueItem.java:53)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem$3.call(PreRenderedMailNotificationQueueItem.java:391)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem$3.call(PreRenderedMailNotificationQueueItem.java:387)
      	at com.atlassian.confluence.user.AuthenticatedUserImpersonator$2.call(AuthenticatedUserImpersonator.java:134)
      	at com.atlassian.confluence.user.AuthenticatedUserImpersonator$1.call(AuthenticatedUserImpersonator.java:113)
      	at com.atlassian.confluence.user.AuthenticatedUserImpersonator.asUser(AuthenticatedUserImpersonator.java:89)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.renderTemplateForRecipient(PreRenderedMailNotificationQueueItem.java:386)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.access$100(PreRenderedMailNotificationQueueItem.java:53)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem$1.call(PreRenderedMailNotificationQueueItem.java:300)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem$1.call(PreRenderedMailNotificationQueueItem.java:296)
      	at com.atlassian.confluence.mail.embed.ThreadLocalMimeBodyPartRecorder.record(ThreadLocalMimeBodyPartRecorder.java:61)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.recordDataSources(PreRenderedMailNotificationQueueItem.java:322)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem.renderTemplate(PreRenderedMailNotificationQueueItem.java:295)
      	at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.renderLegacyTemplate(AbstractMailNotificationQueueItem.java:309)
      	at com.atlassian.confluence.mail.template.AbstractMailNotificationQueueItem.preRenderBody(AbstractMailNotificationQueueItem.java:229)
      	at com.atlassian.confluence.mail.template.PreRenderedMailNotificationQueueItem$Builder.render(PreRenderedMailNotificationQueueItem.java:552)
      	at com.atlassian.confluence.mail.jobs.DefaultDailyReportManager.queueDailyReportEmail(DefaultDailyReportManager.java:139)
      	at com.atlassian.confluence.mail.jobs.DefaultDailyReportManager.generateDailyReports(DefaultDailyReportManager.java:96)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	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 com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	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 $Proxy95.generateDailyReports(Unknown Source)
      	at com.atlassian.confluence.mail.jobs.DailyReportJob.doExecute(DailyReportJob.java:29)
      	at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:89)
      	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      	at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:17)
      	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)
      	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:199)
      	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
      	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      

            [CONFSERVER-33875] Daily Summary Mail: Attempted to coerce undefined value into a string

            Seeing this on 5.10.4 as well

            2016-12-08 00:00:06,551 ERROR [Caesium-1-2] [confluence.mail.jobs.DefaultDailyReportManager] queueDailyReportEmail Failed to create daily report for user [removed] com.google.template.soy.tofu.SoyTofuException: When evaluating "baseUrl() + '/display/~' + $user.name": Attempted to coerce undefined value into a string.

                    at Confluence.Templates.Mail.Utils.userLink(user-link-1.0.0.soy:8)

            Chuck Solie added a comment - Seeing this on 5.10.4 as well 2016-12-08 00:00:06,551 ERROR [Caesium-1-2] [confluence.mail.jobs.DefaultDailyReportManager] queueDailyReportEmail Failed to create daily report for user [removed]  com.google.template.soy.tofu.SoyTofuException: When evaluating "baseUrl() + '/display/~' + $user.name": Attempted to coerce undefined value into a string.         at Confluence.Templates.Mail.Utils.userLink(user-link-1.0.0.soy:8)

            MichałG added a comment -

            and 5.10

            MichałG added a comment - and 5.10

            And 5.9.3.

            Jason Friedman added a comment - And 5.9.3.

            also seeing issues along these lines with 5.9.4

            Gavin Fowler added a comment - also seeing issues along these lines with 5.9.4

            Further to above we are on confluence 5.8.10. Can we get some updates for this confluence version.

            Bhawana Kohli added a comment - Further to above we are on confluence 5.8.10. Can we get some updates for this confluence version.

            We are experiencing the same issue, emails are getting sent inconsistently. Some days it works and sometimes fails with the above error message in the logs. Can we get some resolution for this issue?

            Bhawana Kohli added a comment - We are experiencing the same issue, emails are getting sent inconsistently. Some days it works and sometimes fails with the above error message in the logs. Can we get some resolution for this issue?

            Got the same Problem with Confluence 5.6.6. Please fix it!

            Stephan Heller added a comment - Got the same Problem with Confluence 5.6.6. Please fix it!

            Getting the same issue with Confluence 5.4.4. Any news on this, shaffenden?

            Deleted Account (Inactive) added a comment - Getting the same issue with Confluence 5.4.4. Any news on this, shaffenden ?

            Ishan Liyanage added a comment - - edited

            Hello All,

            I also started to see this ERROR today in our confluence logs. We are using 5.4.4. Any known root cause?

            2014-12-09 00:00:01,788 ERROR [scheduler_Worker-4] [confluence.mail.jobs.DefaultDailyReportManager] queueDailyReportEmail Failed to create daily report for user xxxxxx
            com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Mail.Utils.userLink: When evaluating "baseUrl() + '/display/~' + $user.name": Attempted to coerce undefined value into a string.
                at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)
                at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)
                at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
                at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)
                at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:120)
                at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:53)
                at sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
                at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
                at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
                at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
                at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
            
            

            Ishan Liyanage added a comment - - edited Hello All, I also started to see this ERROR today in our confluence logs. We are using 5.4.4. Any known root cause? 2014-12-09 00:00:01,788 ERROR [scheduler_Worker-4] [confluence.mail.jobs.DefaultDailyReportManager] queueDailyReportEmail Failed to create daily report for user xxxxxx com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Mail.Utils.userLink: When evaluating "baseUrl() + '/display/~' + $user.name" : Attempted to coerce undefined value into a string. at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:120) at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:53) at sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

            Nbe added a comment - - edited

            02.12.2014: Got the same error tonight.
            Confluence v5.6.4

            03.12.2014: This evening all daily summary Email were send successfully without any intervention ( eg. no Confluence restart...)
            Just a one time Bug?

            Nbe added a comment - - edited 02.12.2014: Got the same error tonight. Confluence v5.6.4 03.12.2014: This evening all daily summary Email were send successfully without any intervention ( eg. no Confluence restart...) Just a one time Bug?

              Unassigned Unassigned
              fe7f1ea72ca1 Marc Bauer
              Affected customers:
              26 This affects my team
              Watchers:
              30 Start watching this issue

                Created:
                Updated: