type Exception report
message Request processing failed; nested exception is org.springframework.context.ApplicationContextException: Could not load FreeMarker template for URL [/bid/completeAnnouncement/entityDetailInfo2.ftl]; nested exception is java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.context.ApplicationContextException: Could not load FreeMarker template for URL [/bid/completeAnnouncement/entityDetailInfo2.ftl]; nested exception is java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) com.tabp.filter.XssFilter.doFilter(XssFilter.java:48) com.tabp.filter.InjectFilter.doFilter(InjectFilter.java:73) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
org.springframework.context.ApplicationContextException: Could not load FreeMarker template for URL [/bid/completeAnnouncement/entityDetailInfo2.ftl]; nested exception is java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:218) org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:439) org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:244) org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:402) org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:156) org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1260) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1201) org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) com.tabp.filter.XssFilter.doFilter(XssFilter.java:48) com.tabp.filter.InjectFilter.doFilter(InjectFilter.java:73) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
java.io.IOException: There was an error loading the template on an earlier attempt; it is attached as a cause freemarker.cache.TemplateCache.throwLoadFailedException(TemplateCache.java:399) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:279) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235) freemarker.template.Configuration.getTemplate(Configuration.java:578) freemarker.template.Configuration.getTemplate(Configuration.java:550) org.springframework.web.servlet.view.freemarker.FreeMarkerView.getTemplate(FreeMarkerView.java:350) org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:203) org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:439) org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:244) org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:402) org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:156) org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1260) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1201) org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) com.tabp.filter.XssFilter.doFilter(XssFilter.java:48) com.tabp.filter.InjectFilter.doFilter(InjectFilter.java:73) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause
freemarker.core.ParseException: Found unexpected directive: </#if> on line 397, column 49 Check whether you have a well-formed if-else block. freemarker.core.FMParser.generateParseException(FMParser.java:4702) freemarker.core.FMParser.jj_consume_token(FMParser.java:4573) freemarker.core.FMParser.List(FMParser.java:1263) freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2380) freemarker.core.FMParser.Content(FMParser.java:2623) freemarker.core.FMParser.OptionalBlock(FMParser.java:2791) freemarker.core.FMParser.If(FMParser.java:1177) freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2377) freemarker.core.FMParser.Content(FMParser.java:2623) freemarker.core.FMParser.OptionalBlock(FMParser.java:2791) freemarker.core.FMParser.If(FMParser.java:1202) freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2377) freemarker.core.FMParser.Content(FMParser.java:2623) freemarker.core.FMParser.OptionalBlock(FMParser.java:2791) freemarker.core.FMParser.List(FMParser.java:1262) freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2380) freemarker.core.FMParser.Content(FMParser.java:2623) freemarker.core.FMParser.OptionalBlock(FMParser.java:2791) freemarker.core.FMParser.If(FMParser.java:1177) freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2377) freemarker.core.FMParser.Content(FMParser.java:2623) freemarker.core.FMParser.OptionalBlock(FMParser.java:2791) freemarker.core.FMParser.Root(FMParser.java:2963) freemarker.template.Template.<init>(Template.java:171) freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:447) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:360) freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235) freemarker.template.Configuration.getTemplate(Configuration.java:578) freemarker.template.Configuration.getTemplate(Configuration.java:550) org.springframework.web.servlet.view.freemarker.FreeMarkerView.getTemplate(FreeMarkerView.java:350) org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:203) org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:439) org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:244) org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:402) org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:156) org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1260) org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1201) org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1005) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:952) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123) com.tabp.filter.XssFilter.doFilter(XssFilter.java:48) com.tabp.filter.InjectFilter.doFilter(InjectFilter.java:73) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.78 logs.