You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Marko (JIRA)" <ji...@apache.org> on 2018/02/03 19:50:02 UTC

[jira] [Updated] (FREEMARKER-88) ClassCastException - freemarker.ext.jsp.JspTagModelBase

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

Marko updated FREEMARKER-88:
----------------------------
    Attachment: freemarker_88_01.jpg

> ClassCastException - freemarker.ext.jsp.JspTagModelBase
> -------------------------------------------------------
>
>                 Key: FREEMARKER-88
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-88
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: jsp
>    Affects Versions: 2.3.27-incubating
>            Reporter: Marko
>            Priority: Major
>         Attachments: freemarker_88_01.jpg
>
>
> calling jsp from ftl with an invalid reference is causing an _freemarker.core.InvalidReferenceException_ which is not handled properly.
>  
> {code:java}
> Caused by: java.lang.ClassCastException: freemarker.core.InvalidReferenceException cannot be cast to freemarker.template.TemplateModelException
> at freemarker.ext.jsp.JspTagModelBase.toTemplateModelExceptionOrRethrow(JspTagModelBase.java:146) ~[freemarker-2.3.27-incubating.jar:2.3.27]
> at freemarker.ext.jsp.SimpleTagDirectiveModel.execute(SimpleTagDirectiveModel.java:98) ~[freemarker-2.3.27-incubating.jar:2.3.27]
> {code}



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