freemarker.core.InvalidReferenceException: Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl.

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

    If guessChangeSetId is null, you'll get. {noformat} Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl. The problematic instruction: ---------- ==> ${commit.guessChangeSetId()} [on line 37, column 28 in notification-templates/BuildCompletedTextEmail.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) at freemarker.core.Environment.visit(Environment.java:415) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:298) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:140) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:188) at com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotification.getTextEmailContent(BuildCompletedNotification.java:140) at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:59) at com.atlassian.bamboo.notification.NotificationDispatcher.dispatchNotifications(NotificationDispatcher.java:59) at com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotificationListener.handleEvent(BuildCompletedNotificationListener.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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 $Proxy43.handleEvent(Unknown Source) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:46) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) {noformat} Need to make sure other usages are checked as well

    Atlassian JIRA | 8 years ago | Mark Chaimungkalanont
    freemarker.core.InvalidReferenceException: Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl.
  2. 0

    If guessChangeSetId is null, you'll get. {noformat} Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl. The problematic instruction: ---------- ==> ${commit.guessChangeSetId()} [on line 37, column 28 in notification-templates/BuildCompletedTextEmail.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167) at freemarker.core.Environment.visit(Environment.java:415) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:298) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:140) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:188) at com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotification.getTextEmailContent(BuildCompletedNotification.java:140) at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:59) at com.atlassian.bamboo.notification.NotificationDispatcher.dispatchNotifications(NotificationDispatcher.java:59) at com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotificationListener.handleEvent(BuildCompletedNotificationListener.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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 $Proxy43.handleEvent(Unknown Source) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:46) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Thread.java:595) {noformat} Need to make sure other usages are checked as well

    Atlassian JIRA | 8 years ago | Mark Chaimungkalanont
    freemarker.core.InvalidReferenceException: Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl.
  3. 0

    Access RequestParameters inside Camel Freemarker ftl

    Stack Overflow | 3 years ago | amate
    freemarker.core.InvalidReferenceException: Expression RequestParameters is undefined on line 216, column 40 in ftl/META-INF/spring/route-context.xml.ftl.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FreeMarker Template Error

    oreports | 9 years ago | jenwheel
    freemarker.core.InvalidReferenceException: Expression error is undefined on line 4, column 50 in template/simple/actionerror.ftl.
  6. 0

    VCF to HTML conversion is throwing exception with partial conversion

    GitHub | 2 years ago | GoogleCodeExporter
    freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> org [in template "hcard-template.html" at line 407, column 107] Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)?? The failing instruction (print stack trace for 1 more): ==> ${org} [in template "hcard-template.html" at line 407, column 105]
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.core.InvalidReferenceException

    Expression commit.guessChangeSetId() is undefined on line 37, column 30 in notification-templates/BuildCompletedTextEmail.ftl.

    at freemarker.core.TemplateObject.assertNonNull()
  2. FreeMarker
    Template.process
    1. freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    2. freemarker.core.Expression.getStringValue(Expression.java:118)
    3. freemarker.core.Expression.getStringValue(Expression.java:93)
    4. freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    5. freemarker.core.Environment.visit(Environment.java:208)
    6. freemarker.core.MixedContent.accept(MixedContent.java:92)
    7. freemarker.core.Environment.visit(Environment.java:208)
    8. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
    9. freemarker.core.Environment.visit(Environment.java:415)
    10. freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    11. freemarker.core.Environment.visit(Environment.java:208)
    12. freemarker.core.MixedContent.accept(MixedContent.java:92)
    13. freemarker.core.Environment.visit(Environment.java:208)
    14. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    15. freemarker.core.Environment.visit(Environment.java:208)
    16. freemarker.core.MixedContent.accept(MixedContent.java:92)
    17. freemarker.core.Environment.visit(Environment.java:208)
    18. freemarker.core.Environment.process(Environment.java:188)
    19. freemarker.template.Template.process(Template.java:237)
    19 frames
  3. com.atlassian.bamboo
    BuildCompletedNotificationListener.handleEvent
    1. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:298)
    2. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:140)
    3. com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:188)
    4. com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotification.getTextEmailContent(BuildCompletedNotification.java:140)
    5. com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:59)
    6. com.atlassian.bamboo.notification.NotificationDispatcher.dispatchNotifications(NotificationDispatcher.java:59)
    7. com.atlassian.bamboo.notification.buildcompleted.BuildCompletedNotificationListener.handleEvent(BuildCompletedNotificationListener.java:89)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  6. Hibernate
    HibernateInterceptor.invoke
    1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
    1 frame
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  8. Unknown
    $Proxy43.handleEvent
    1. $Proxy43.handleEvent(Unknown Source)
    1 frame
  9. com.atlassian.bamboo
    BambooEventManager$2.run
    1. com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:46)
    1 frame
  10. Backport of JSR 166
    ThreadPoolExecutor$Worker.run
    1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    2 frames
  11. com.atlassian.bamboo
    NamedThreadFactory$1.run
    1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
    1 frame
  12. Backport of JSR 166
    ThreadHelpers$1.run
    1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
    1 frame
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame