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

Marko commented on FREEMARKER-88:
---------------------------------

Great, thank you!

> 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
>             Fix For: 2.3.28-incubating
>
>         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]
>         at freemarker.core.Environment.visit(Environment.java:440) 
> ~[freemarker-2.3.27-incubating.jar:2.3.27]
>         at freemarker.core.UnifiedCall.accept(UnifiedCall.java:101) 
> ~[freemarker-2.3.27-incubating.jar:2.3.27]
>         at freemarker.core.Environment.visit(Environment.java:325) 
> ~[freemarker-2.3.27-incubating.jar:2.3.27]
>         at freemarker.core.Environment.visit(Environment.java:331) 
> ~[freemarker-2.3.27-incubating.jar:2.3.27]
>         at freemarker.core.Environment.process(Environment.java:304) 
> ~[freemarker-2.3.27-incubating.jar:2.3.27]
> {code}
> Environment: Java 1.8.0_152 64Bit, Win7 x64, Tomcat 7.0.82



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

Reply via email to