freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]

no-ppt.com | 3 months ago
  1. 0

    No-PPT | 非常演示

    no-ppt.com | 3 months ago
    freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
  2. 0

    Sitemesh throws: Unhandled exception occurred whilst decorating page: java.lang.ArrayIndexOutOfBoundsException: -1

    Stack Overflow | 1 year ago | mrh
    freemarker.core._MiscTemplateException: Failed to "?eval" string with this error: ---begin-message--- Invalid reference. Details are unavilable, as this should have been handled by an FTL construct. If it wasn't, that's problably a bug in FreeMarker. ---end-message--- The failing expression: ==> action_property?eval [in template "WEB-INF/content/common/controls/radio.ftl" at line 3, column 78] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if ((action_property?eval)!"") == value [in template "WEB-INF/content/common/controls/radio.ftl" in macro "display" at line 3, column 71] - Reached through: @radio.display action_property="ccdSe... [in template "WEB-INF/content/common/ccd_search_fields.ftl" in macro "display" at line 21, column 21] - Reached through: @ccd_search_fields.display [in template "WEB-INF/content/search-ccd.ftl" at line 25, column 5] ----
  3. 0

    Possible regression in 5.4.0 - no mail notification received

    GitHub | 4 months ago | mchubby
    freemarker.core._MiscTemplateException: When calling macro "commentBlock", required parameter "avatar" (parameter #1) was specified, but had null/missing value. ---- Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the "!" operator, like paramValue!defaultValue. ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #macro commentBlock avatar displayNam... [in template "macroTextBlock.ftl" in macro "commentBlock" at line 18, column 1] - Reached through: @lib.commentBlock avatar=commentItem... [in template "mailProjectItemCommentNotifier.ftl" at line 22, column 17] ----
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to find “Spring.ftl” file when using Freemarker and Tiles 3

    tiles-users | 2 years ago | JMill
    freemarker.core._MiscTemplateException: Error reading imported template spring.ftl The failing instruction:==> #import "/spring.ftl" as spring [in template "WEB-INF/layouts/default.ftl" at line 2, column 1]
  6. 0

    Java Freemarker parsing exception

    Stack Overflow | 1 year ago | Sannin
    com.sannin.exception.TechnicalException: com.sannin.template.Renderer.render(Renderer.java:78) ~[tools-0.1.jar:na]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. freemarker.core._MiscTemplateException

      Can't compare values of these types. Allowed comparisons are between two numbers, two strings, two dates, or two booleans. Left hand operand is a string (wrapper: f.t.SimpleScalar). Right hand operand is a number (wrapper: f.t.SimpleNumber). The blamed expression: ==> (production.author) == 10001 [in template "freemarker/production/list.ftl" at line 51, column 44] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if (production.author) == 10001 [in template "freemarker/production/list.ftl" at line 51, column 39] ----

      at freemarker.core.EvalUtil.compare()
    2. FreeMarker
      FreemarkerServlet.doGet
      1. freemarker.core.EvalUtil.compare(EvalUtil.java:300)
      2. freemarker.core.EvalUtil.compare(EvalUtil.java:112)
      3. freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:65)
      4. freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:46)
      5. freemarker.core.Environment.visit(Environment.java:257)
      6. freemarker.core.MixedContent.accept(MixedContent.java:57)
      7. freemarker.core.Environment.visitByHiddingParent(Environment.java:278)
      8. freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:157)
      9. freemarker.core.Environment.visitIteratorBlock(Environment.java:501)
      10. freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)
      11. freemarker.core.Environment.visitByHiddingParent(Environment.java:278)
      12. freemarker.core.IfBlock.accept(IfBlock.java:48)
      13. freemarker.core.Environment.visit(Environment.java:257)
      14. freemarker.core.MixedContent.accept(MixedContent.java:57)
      15. freemarker.core.Environment.visit(Environment.java:257)
      16. freemarker.core.Environment.process(Environment.java:235)
      17. freemarker.template.Template.process(Template.java:262)
      18. freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:420)
      19. freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:359)
      19 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      2 frames
    4. Jetty
      Dispatcher.include
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.Dispatcher.include(Dispatcher.java:115)
      11 frames
    5. FreeMarker
      FreeMarkerPageContext.include
      1. freemarker.ext.jsp.FreeMarkerPageContext.include(FreeMarkerPageContext.java:369)
      1 frame
    6. Tiles Request - JSP support
      JspRequest.doInclude
      1. org.apache.tiles.request.jsp.JspRequest.doInclude(JspRequest.java:123)
      1 frame
    7. Tiles request - API
      ChainedDelegateRenderer.render
      1. org.apache.tiles.request.AbstractViewRequest.dispatch(AbstractViewRequest.java:47)
      2. org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
      3. org.apache.tiles.request.render.ChainedDelegateRenderer.render(ChainedDelegateRenderer.java:68)
      3 frames
    8. Tiles - Core Library
      BasicTilesContainer.render
      1. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
      1 frame
    9. Tiles - Template Technologies Support
      InsertAttributeModel.execute
      1. org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:188)
      2. org.apache.tiles.template.InsertAttributeModel.execute(InsertAttributeModel.java:132)
      2 frames
    10. Tiles - JSP support
      InsertAttributeTag.doTag
      1. org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:299)
      1 frame
    11. FreeMarker
      FreemarkerServlet.doGet
      1. freemarker.ext.jsp.SimpleTagDirectiveModel.execute(SimpleTagDirectiveModel.java:90)
      2. freemarker.core.Environment.visit(Environment.java:333)
      3. freemarker.core.UnifiedCall.accept(UnifiedCall.java:100)
      4. freemarker.core.Environment.visit(Environment.java:257)
      5. freemarker.core.MixedContent.accept(MixedContent.java:57)
      6. freemarker.core.Environment.visit(Environment.java:257)
      7. freemarker.core.Environment.process(Environment.java:235)
      8. freemarker.template.Template.process(Template.java:262)
      9. freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:420)
      10. freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:359)
      10 frames
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      2 frames
    13. Jetty
      Dispatcher.forward
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:191)
      12. org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:72)
      12 frames
    14. Tiles request - Servlet support
      ServletRequest.doForward
      1. org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)
      2. org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)
      2 frames
    15. Tiles request - API
      DispatchRenderer.render
      1. org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)
      2. org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)
      2 frames
    16. Tiles - Core Library
      DefinitionRenderer.render
      1. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)
      2. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)
      3. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)
      4. org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:221)
      5. org.apache.tiles.renderer.DefinitionRenderer.render(DefinitionRenderer.java:59)
      5 frames
    17. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.view.tiles3.TilesView.renderMergedOutputModel(TilesView.java:132)
      2. org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
      3. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1243)
      4. org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
      8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
      8 frames
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      1 frame
    19. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
      1 frame
    20. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    21. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      2 frames
    22. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      2 frames
    23. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      11. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      12. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      13. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      14. org.eclipse.jetty.server.Server.handle(Server.java:497)
      15. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:313)
      16. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
      17. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      18. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:626)
      19. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:546)
      19 frames
    24. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame