org.springframework.context.ApplicationContextException

Failed to parse FreeMarker template for URL [/150x1501-sphone.png]; nested exception is freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 14, column 34. Encountered: "\ufffd" (65533), after : "" in 150x1501-sphone.png

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9

  • via Unknown by Miguel F,
  • Stack trace

    • org.springframework.context.ApplicationContextException: Failed to parse FreeMarker template for URL [/150x1501-sphone.png]; nested exception is freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 14, column 34. Encountered: "\ufffd" (65533), after : "" in 150x1501-sphone.png at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.craftercms.security.servlet.filters.RequestSecurityFilter$1.processRequest(RequestSecurityFilter.java:199) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.UrlAccessRestrictionCheckingProcessor.processRequest(UrlAccessRestrictionCheckingProcessor.java:170) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.SecurityExceptionProcessor.processRequest(SecurityExceptionProcessor.java:87) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.SavedRequestAwareProcessor.processRequest(SavedRequestAwareProcessor.java:83) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.VerifyAccountProcessor.processRequest(VerifyAccountProcessor.java:96) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.CreateProfileProcessor.processRequest(CreateProfileProcessor.java:154) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.ResetPasswordProcessor.processRequest(ResetPasswordProcessor.java:126) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.ForgotPasswordProcessor.processRequest(ForgotPasswordProcessor.java:130) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.LogoutProcessor.processRequest(LogoutProcessor.java:138) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.LoginProcessor.processRequest(LoginProcessor.java:174) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.engine.security.PreviewAuthenticationTokenResolvingProcessor.processRequest(PreviewAuthenticationTokenResolvingProcessor.java:79) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.engine.security.SiteNameBasedTenantNameResolvingProcessor.processRequest(SiteNameBasedTenantNameResolvingProcessor.java:47) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.impl.processors.SaveAuthenticationCookieResponseWrappingProcessor.processRequest(SaveAuthenticationCookieResponseWrappingProcessor.java:63) at org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51) at org.craftercms.security.servlet.filters.RequestSecurityFilter.doFilterInternal(RequestSecurityFilter.java:137) at org.craftercms.security.servlet.filters.RequestSecurityFilter.doFilter(RequestSecurityFilter.java:108) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.handleSiteNameResolved(AbstractSiteContextResolvingFilter.java:152) at org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.doFilter(AbstractSiteContextResolvingFilter.java:98) at org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.doFilter(AbstractSiteContextResolvingFilter.java:91) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.craftercms.engine.servlet.filter.ExceptionHandlingFilter.doFilter(ExceptionHandlingFilter.java:50) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.craftercms.security.servlet.filters.RequestContextBindingFilter.doFilterInternal(RequestContextBindingFilter.java:61) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.context.ApplicationContextException: Failed to parse FreeMarker template for URL [/150x1501-sphone.png]; nested exception is freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 14, column 34. Encountered: "\ufffd" (65533), after : "" in 150x1501-sphone.png at org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:213) at org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:438) at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:186) at org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:401) at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:95) at org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1211) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1160) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) ... 70 more Caused by: freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 14, column 34. Encountered: "\ufffd" (65533), after : "" in 150x1501-sphone.png at freemarker.template.Template.<init>(Template.java:174) at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:447) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:360) at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235) at freemarker.template.Configuration.getTemplate(Configuration.java:578) at freemarker.template.Configuration.getTemplate(Configuration.java:550) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.getTemplate(FreeMarkerView.java:350) at org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:203) ... 79 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.