freemarker.core.ParseException: Encountered "<\#ftl " at line 13, column 9. Was expecting one of: <ATTEMPT> ... <IF> ... <LIST> ... <FOREACH> ... <SWITCH> ... . . . at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:362) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:229) at freemarker.template.Configuration.getTemplate(Configuration.java:426) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1341)

freemarker | grimholtz | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 1

    Content-type with FreemarkerServlet

    freemarker | 1 decade ago | grimholtz
    freemarker.core.ParseException: Encountered "<\#ftl " at line 13, column 9. Was expecting one of: <ATTEMPT> ... <IF> ... <LIST> ... <FOREACH> ... <SWITCH> ... . . . at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:362) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:229) at freemarker.template.Configuration.getTemplate(Configuration.java:426) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1341)

    Root Cause Analysis

    1. freemarker.core.ParseException

      Encountered "<\#ftl " at line 13, column 9. Was expecting one of: <ATTEMPT> ... <IF> ... <LIST> ... <FOREACH> ... <SWITCH> ... . . . at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:362) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:229) at freemarker.template.Configuration.getTemplate(Configuration.java:426) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1341)

      at freemarker.core.Include.accept()
    2. FreeMarker
      Template.process
      1. freemarker.core.Include.accept(Include.java:143)
      2. freemarker.core.Environment.visit(Environment.java:196)
      3. freemarker.core.MixedContent.accept(MixedContent.java:92)
      4. freemarker.core.Environment.visit(Environment.java:196)
      5. freemarker.core.Environment.process(Environment.java:176)
      6. freemarker.template.Template.process(Template.java:223)
      6 frames