freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FREEMARKER-108) NPE while getting TemplateException message body
Date Wed, 28 Nov 2018 00:44:00 GMT

    [ https://issues.apache.org/jira/browse/FREEMARKER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701226#comment-16701226
] 

Daniel Dekany commented on FREEMARKER-108:
------------------------------------------

Can you show the template that leads to this?

> NPE while getting TemplateException message body
> ------------------------------------------------
>
>                 Key: FREEMARKER-108
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-108
>             Project: Apache Freemarker
>          Issue Type: Bug
>    Affects Versions: 2.3.28
>            Reporter: jce
>            Priority: Major
>
> Hi, I have some issue in ftl template, but exception is not clear. Processing of TemplateException
fall on NPE:
> {quote}{{Caused by: java.lang.NullPointerException}}
> {{ at freemarker.core.BuiltIn.getCanonicalForm(BuiltIn.java:387)}}
> {{ at freemarker.core.DesanitizeLegacyEscapingBIWrapper.getCanonicalForm(DesanitizeLegacyEscapingBIWrapper.java:24)}}
> {{ at freemarker.core.DollarVariable.dump(DollarVariable.java:108)}}
> {{ at freemarker.core.Interpolation.dump(Interpolation.java:29)}}
> {{ at freemarker.core.TemplateElement.getDescription(TemplateElement.java:95)}}
> {{ at freemarker.core.Environment.appendInstructionStackItem(Environment.java:2208)}}
> {{ at freemarker.core.Environment.instructionStackItemToString(Environment.java:2203)}}
> {{ at freemarker.core.Environment.outputInstructionStack(Environment.java:2123)}}
> {{ at freemarker.core._CoreAPI.outputInstructionStack(_CoreAPI.java:157)}}
> {{ at freemarker.template.TemplateException.getFTLInstructionStackTopFew(TemplateException.java:262)}}
> {{ at freemarker.template.TemplateException.renderMessages(TemplateException.java:180)}}
> {{ at freemarker.template.TemplateException.getMessage(TemplateException.java:442)}}
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message