freemarker.template.TemplateException: Error executing macro: displayTestList required parameter: testList is not specified.

Atlassian JIRA | Daniel Santos | 3 months ago
  1. 0

    h3. Summary Plan notification "All Builds Completed" is failing to get some test details and throwing the following error: {noformat}Error executing macro: displayTestList{noformat} h3. Steps to Reproduce # Create a plan # Configure some tests and execute some builds # Configure the plan to send a notification to the *All Builds Completed* event h3. Expected Results The notification is sent with the statistics of failed and passed tests, along with the list of tests run. h3. Actual Results The notification is sent with the statistics of failed and passed tests, but the test list is empty. Also the following error is thrown in the logs: {noformat} 2016-08-23 14:57:14,199 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-1] [runtime] Error executing macro: displayTestList required parameter: testList is not specified. Error executing macro: displayTestList required parameter: testList is not specified. The problematic instruction: ---------- ==> macro displayTestList [on line 471, column 1 in notification-templates/notificationCommonsHtml.ftl] in user-directive displayTestList [on line 463, column 13 in notification-templates/notificationCommonsHtml.ftl] in user-directive showTests [on line 439, column 9 in notification-templates/notificationCommonsHtml.ftl] in user-directive showChainTests [on line 41, column 5 in notification-templates/ChainCompletedHtmlEmail.ftl] in user-directive templateOuter [on line 12, column 1 in notification-templates/ChainCompletedHtmlEmail.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateException: Error executing macro: displayTestList required parameter: testList is not specified. at freemarker.core.Macro$Context.sanityCheck(Macro.java:222) at freemarker.core.Macro$Context.runMacro(Macro.java:180) at freemarker.core.Environment.visit(Environment.java:603) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:118) 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.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.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.Macro$Context.runMacro(Macro.java:183) at freemarker.core.Environment.visit(Environment.java:603) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:118) 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.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:210) at freemarker.core.Macro$Context.runMacro(Macro.java:183) at freemarker.core.Environment.visit(Environment.java:603) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:118) 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:183) at freemarker.core.Environment.visit(Environment.java:603) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:118) 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:289) at freemarker.template.Template.process(Template.java:243) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:470) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:421) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:375) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderTemplateToString(BambooFreemarkerManager.java:604) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:340) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:327) at com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification.getHtmlEmailContent(AbstractCompletedNotification.java:144) at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:63) at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:60) at com.atlassian.bamboo.notification.chain.ChainCompletedNotificationListener.handleEvent(ChainCompletedNotificationListener.java:105) at sun.reflect.GeneratedMethodAccessor1038.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy1156.handleEvent(Unknown Source) at sun.reflect.GeneratedMethodAccessor1038.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy1157.handleEvent(Unknown Source) at com.atlassian.event.legacy.LegacyListenerHandler$LegacyListenerInvoker.invoke(LegacyListenerHandler.java:55) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) {noformat}

    Atlassian JIRA | 3 months ago | Daniel Santos
    freemarker.template.TemplateException: Error executing macro: displayTestList required parameter: testList is not specified.
  2. 0

    Error processing freemarker template @ /webadmin/niws/index.ftl

    GitHub | 2 years ago | brharrington
    freemarker.template.TemplateException: Error reading included file webadmin/niws/index.ftl
  3. 0

    Tabbedpanel using Struts2-JQuery

    Stack Overflow | 4 years ago | user1696639
    freemarker.template.TemplateException: Error reading included file template/simple/dynamic-attributes.ftl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Intermittent Freemarker Template Exception, seemingly when under load

    Stack Overflow | 5 years ago | Aaron Chambers
    freemarker.template.TemplateException: Error reading included file WEB-INF/templates/includes/header_setup.ftl
  6. 0

    Disable submit button on freemarker/spring form until file chosen

    Stack Overflow | 5 years ago | Paul McKenzie
    freemarker.template.TemplateException: Error executing macro: formSingleSelect required parameter: options is not specified.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. freemarker.template.TemplateException

      Error executing macro: displayTestList required parameter: testList is not specified.

      at freemarker.core.Macro$Context.sanityCheck()
    2. FreeMarker
      Template.process
      1. freemarker.core.Macro$Context.sanityCheck(Macro.java:222)
      2. freemarker.core.Macro$Context.runMacro(Macro.java:180)
      3. freemarker.core.Environment.visit(Environment.java:603)
      4. freemarker.core.UnifiedCall.accept(UnifiedCall.java:118)
      5. freemarker.core.Environment.visit(Environment.java:210)
      6. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      7. freemarker.core.Environment.visit(Environment.java:210)
      8. freemarker.core.MixedContent.accept(MixedContent.java:92)
      9. freemarker.core.Environment.visit(Environment.java:210)
      10. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      11. freemarker.core.Environment.visit(Environment.java:210)
      12. freemarker.core.MixedContent.accept(MixedContent.java:92)
      13. freemarker.core.Environment.visit(Environment.java:210)
      14. freemarker.core.Macro$Context.runMacro(Macro.java:183)
      15. freemarker.core.Environment.visit(Environment.java:603)
      16. freemarker.core.UnifiedCall.accept(UnifiedCall.java:118)
      17. freemarker.core.Environment.visit(Environment.java:210)
      18. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
      19. freemarker.core.Environment.visit(Environment.java:210)
      20. freemarker.core.MixedContent.accept(MixedContent.java:92)
      21. freemarker.core.Environment.visit(Environment.java:210)
      22. freemarker.core.Macro$Context.runMacro(Macro.java:183)
      23. freemarker.core.Environment.visit(Environment.java:603)
      24. freemarker.core.UnifiedCall.accept(UnifiedCall.java:118)
      25. freemarker.core.Environment.visit(Environment.java:210)
      26. freemarker.core.MixedContent.accept(MixedContent.java:92)
      27. freemarker.core.Environment.visit(Environment.java:210)
      28. freemarker.core.Environment.visit(Environment.java:395)
      29. freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
      30. freemarker.core.Environment.visit(Environment.java:210)
      31. freemarker.core.MixedContent.accept(MixedContent.java:92)
      32. freemarker.core.Environment.visit(Environment.java:210)
      33. freemarker.core.Macro$Context.runMacro(Macro.java:183)
      34. freemarker.core.Environment.visit(Environment.java:603)
      35. freemarker.core.UnifiedCall.accept(UnifiedCall.java:118)
      36. freemarker.core.Environment.visit(Environment.java:210)
      37. freemarker.core.MixedContent.accept(MixedContent.java:92)
      38. freemarker.core.Environment.visit(Environment.java:210)
      39. freemarker.core.Environment.process(Environment.java:190)
      40. freemarker.template.Template.process(Template.java:289)
      41. freemarker.template.Template.process(Template.java:243)
      41 frames
    3. com.atlassian.bamboo
      ChainCompletedNotificationListener.handleEvent
      1. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:470)
      2. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:421)
      3. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:375)
      4. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderTemplateToString(BambooFreemarkerManager.java:604)
      5. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:340)
      6. com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:327)
      7. com.atlassian.bamboo.notification.buildcompleted.AbstractCompletedNotification.getHtmlEmailContent(AbstractCompletedNotification.java:144)
      8. com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:63)
      9. com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:60)
      10. com.atlassian.bamboo.notification.chain.ChainCompletedNotificationListener.handleEvent(ChainCompletedNotificationListener.java:105)
      10 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1038.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    6. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      4 frames
    8. com.sun.proxy
      $Proxy1156.handleEvent
      1. com.sun.proxy.$Proxy1156.handleEvent(Unknown Source)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor1038.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    10. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      3 frames
    11. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate3.HibernateInterceptor.invoke(HibernateInterceptor.java:119)
      1 frame
    12. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      2 frames
    13. com.sun.proxy
      $Proxy1157.handleEvent
      1. com.sun.proxy.$Proxy1157.handleEvent(Unknown Source)
      1 frame
    14. com.atlassian.event
      AsynchronousAbleEventDispatcher$1$1.run
      1. com.atlassian.event.legacy.LegacyListenerHandler$LegacyListenerInvoker.invoke(LegacyListenerHandler.java:55)
      2. com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46)
      2 frames
    15. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    16. com.atlassian.bamboo
      ImpersonationHelper$1.run
      1. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
      2. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      3. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      4. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      4 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame