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] [Resolved] (FREEMARKER-71) Causing stacktrace gets completely lost
Date Sat, 16 Sep 2017 13:31:02 GMT

     [ https://issues.apache.org/jira/browse/FREEMARKER-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dekany resolved FREEMARKER-71.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.27-incubating

> Causing stacktrace gets completely lost
> ---------------------------------------
>
>                 Key: FREEMARKER-71
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-71
>             Project: Apache Freemarker
>          Issue Type: Bug
>            Reporter: Vojtech Knyttl
>             Fix For: 2.3.27-incubating
>
>
> When using eval and inner method throws exception, this exception gets completely lost
and is not found in stack trace.
> The problem is in method BuiltinsForStringsMisc.java (eg. https://www.programcreek.com/java-api-examples/index.php?source_dir=freemarker-old-master/src/main/java/freemarker/core/BuiltInsForStringsMisc.java):
> {code:java}
>            try { 
>                 return exp.eval(env); 
>             } catch (TemplateException e) { 
>                 throw new _MiscTemplateException(this, env, 
>                         "Failed to \"?", key, "\" string with this error:\n\n", 
>                         MessageUtil.EMBEDDED_MESSAGE_BEGIN, 
>                         new _DelayedGetMessageWithoutStackTop(e), 
>                         MessageUtil.EMBEDDED_MESSAGE_END, 
>                         "\n\nThe failing expression:"); 
>             } 
> {code}
> The caught exception is not logged, nor passed to the new exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message