Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-5788

Freemarker exceptions in the Build Hung emails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.6 rc1, 2.6
    • None
    • None
    • None

      Build hung emails appear to be broken

      2010-05-11 23:59:47,921 ERROR [BAM::Events:pool-1-thread-237] [runtime] Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.
      
      Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.
      The problematic instruction:
      ----------
      ==> if-else  [on line 208, column 13 in notification-templates/notificationCommons.ftl]
       in user-directive showLogHtml [on line 19, column 17 in notification-templates/BuildHungHtmlEmail.ftl]
       in user-directive fontHtml [on line 4, column 5 in notification-templates/BuildHungHtmlEmail.ftl]
      ----------
      
      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.
              at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
              at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
              at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
              at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
              at freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:646)
              at freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:657)
              at freemarker.core.AndExpression.isTrue(AndExpression.java:68)
              at freemarker.core.IfBlock.accept(IfBlock.java:80)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.MixedContent.accept(MixedContent.java:92)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
              at freemarker.core.Environment.visit(Environment.java:417)
              at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.MixedContent.accept(MixedContent.java:92)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.Macro$Context.runMacro(Macro.java:172)
              at freemarker.core.Environment.visit(Environment.java:603)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.MixedContent.accept(MixedContent.java:92)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.Environment.visit(Environment.java:395)
              at freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.MixedContent.accept(MixedContent.java:92)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.Macro$Context.runMacro(Macro.java:172)
              at freemarker.core.Environment.visit(Environment.java:603)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.MixedContent.accept(MixedContent.java:92)
              at freemarker.core.Environment.visit(Environment.java:210)
              at freemarker.core.Environment.process(Environment.java:190)
              at freemarker.template.Template.process(Template.java:237)
              at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:420)
              at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:261)
              at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:237)
              at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:306)
              at com.atlassian.bamboo.notification.buildhung.BuildHungNotification.getHtmlEmailContent(BuildHungNotification.java:159)
              at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:66)
              at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:59)
              at com.atlassian.bamboo.notification.buildhung.BuildHungNotificationListener.handleEvent(BuildHungNotificationListener.java:82)
              at sun.reflect.GeneratedMethodAccessor399.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:304)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
              at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
              at $Proxy201.handleEvent(Unknown Source)
              at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
              at java.lang.Thread.run(Thread.java:619)
      

      Please add functional tests for this one as well

              mgardias Marcin Gardias
              mark@atlassian.com MarkC
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: