Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-88

ClassCastException - freemarker.ext.jsp.JspTagModelBase

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.27-incubating
    • Fix Version/s: 2.3.28
    • Component/s: jsp
    • Labels:
      None

      Description

      calling jsp from ftl with an invalid reference is causing an freemarker.core.InvalidReferenceException which is not handled properly.

      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]
      

      Environment: Java 1.8.0_152 64Bit, Win7 x64, Tomcat 7.0.82

        Attachments

        1. freemarker_88_01.jpg
          315 kB
          Marko

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mla79 Marko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: