freemarker.core.InvalidReferenceException: Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.

Atlassian JIRA | Mark Chaimungkalanont | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Build hung emails appear to be broken {noformat} 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) {noformat} Please add functional tests for this one as well

    Atlassian JIRA | 7 years ago | Mark Chaimungkalanont
    freemarker.core.InvalidReferenceException: Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.
  2. 0

    Build hung emails appear to be broken {noformat} 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) {noformat} Please add functional tests for this one as well

    Atlassian JIRA | 7 years ago | Mark Chaimungkalanont
    freemarker.core.InvalidReferenceException: Expression line is undefined on line 208, column 18 in notification-templates/notificationCommons.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 line is undefined on line 208, column 18 in notification-templates/notificationCommons.ftl.

    at freemarker.core.TemplateObject.assertNonNull()
  2. FreeMarker
    Template.process
    1. freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    2. freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
    3. freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
    4. freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
    5. freemarker.core.BuiltIn$existsBI._getAsTemplateModel(BuiltIn.java:646)
    6. freemarker.core.BuiltIn$existsBI.isTrue(BuiltIn.java:657)
    7. freemarker.core.AndExpression.isTrue(AndExpression.java:68)
    8. freemarker.core.IfBlock.accept(IfBlock.java:80)
    9. freemarker.core.Environment.visit(Environment.java:210)
    10. freemarker.core.MixedContent.accept(MixedContent.java:92)
    11. freemarker.core.Environment.visit(Environment.java:210)
    12. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
    13. freemarker.core.Environment.visit(Environment.java:417)
    14. freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
    15. freemarker.core.Environment.visit(Environment.java:210)
    16. freemarker.core.MixedContent.accept(MixedContent.java:92)
    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.Macro$Context.runMacro(Macro.java:172)
    21. freemarker.core.Environment.visit(Environment.java:603)
    22. freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    23. freemarker.core.Environment.visit(Environment.java:210)
    24. freemarker.core.MixedContent.accept(MixedContent.java:92)
    25. freemarker.core.Environment.visit(Environment.java:210)
    26. freemarker.core.Environment.visit(Environment.java:395)
    27. freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
    28. freemarker.core.Environment.visit(Environment.java:210)
    29. freemarker.core.MixedContent.accept(MixedContent.java:92)
    30. freemarker.core.Environment.visit(Environment.java:210)
    31. freemarker.core.Macro$Context.runMacro(Macro.java:172)
    32. freemarker.core.Environment.visit(Environment.java:603)
    33. freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
    34. freemarker.core.Environment.visit(Environment.java:210)
    35. freemarker.core.MixedContent.accept(MixedContent.java:92)
    36. freemarker.core.Environment.visit(Environment.java:210)
    37. freemarker.core.Environment.process(Environment.java:190)
    38. freemarker.template.Template.process(Template.java:237)
    38 frames
  3. com.atlassian.bamboo
    BuildHungNotificationListener.handleEvent
    1. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:420)
    2. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:261)
    3. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:237)
    4. com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:306)
    5. com.atlassian.bamboo.notification.buildhung.BuildHungNotification.getHtmlEmailContent(BuildHungNotification.java:159)
    6. com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:66)
    7. com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:59)
    8. com.atlassian.bamboo.notification.buildhung.BuildHungNotificationListener.handleEvent(BuildHungNotificationListener.java:82)
    8 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 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
    $Proxy201.handleEvent
    1. $Proxy201.handleEvent(Unknown Source)
    1 frame
  9. com.atlassian.bamboo
    BambooEventManager$2.run
    1. com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:66)
    1 frame
  10. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    2 frames
  11. com.atlassian.bamboo
    NamedThreadFactory$2.run
    1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:47)
    1 frame
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame