Ticket #839 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Can't generate null subscription mail in emailThisArticle-text.ftl

Reported by: rich Assigned to: jkirton
Priority: low Milestone:
Component: ambra Version: 0.8.2.1
Keywords: Cc:
Blocking: Blocked By:

Description

From the log files:

2008-03-09 23:57:34,912 ERROR UnhandledException(PLoSCompBiol)> Can't generate null subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression description is undefined on line 13, column 3 in emailThisArticle-text.ftl. [TP-Processor30 org.plos.UnhandledException]org.springframework.mail.MailPreparationException: Can't generate null subscription mail; nested exception is freemarker.core.InvalidReferenceException: Expression description is undefined on line 13, column 3 in emailThisArticle-text.ftl.
Caused by:
Expression description is undefined on line 13, column 3 in emailThisArticle-text.ftl.
The problematic instruction:
----------
==> ${description} [on line 13, column 1 in emailThisArticle-text.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression description is undefined on line 13, column 3 in emailThisArt
icle-text.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:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.process(Environment.java:176)
        at freemarker.template.Template.process(Template.java:232)
        at org.plos.email.impl.FreemarkerTemplateMailer.createBodyPart(FreemarkerTemplateMailer.java:127)
        at org.plos.email.impl.FreemarkerTemplateMailer.createPartForMultipart(FreemarkerTemplateMailer.java:114)
        at org.plos.email.impl.FreemarkerTemplateMailer.access$100(FreemarkerTemplateMailer.java:48)
        at org.plos.email.impl.FreemarkerTemplateMailer$1.prepare(FreemarkerTemplateMailer.java:93)

...

Let me know if you want the full backtrace.

Dependency Graph

Change History

03/11/08 09:48:39 changed by rich

2008-03-09 23:57:34,876 ERROR runtime(PLoSCompBiol)>  [TP-Processor30 freemarker.runtime]
Expression description is undefined on line 13, column 3 in emailThisArticle-text.ftl.
The problematic instruction:
----------
==> ${description} [on line 13, column 1 in emailThisArticle-text.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression description is undefined on line 13, column 3 in emailThisArt
icle-text.ftl.

03/11/08 15:44:00 changed by jkirton

  • status changed from new to closed.
  • resolution set to fixed.

(In [4956]) fixes #839 Ensure null-safe access to the FTL description variable for the ftl email article templates.

04/02/08 16:21:53 changed by alex

(In [5268]) Merged revisions 4956 via svnmerge from http://gandalf.topazproject.org/svn/branches/0.8.2.2

........

r4956 | jkirton | 2008-03-11 15:44:00 -0700 (Tue, 11 Mar 2008) | 2 lines

fixes #839 Ensure null-safe access to the FTL description variable for the ftl email article templates.

........