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

Google Groups | Miguel F | 2 years ago
  1. 0

    "Unable to load selected image" in image uploader

    Google Groups | 2 years ago | Miguel F
    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
  2. 0

    Strange issue when ODT file is re-saved after re-typing a part of parameter name

    GitHub | 12 months ago | erobic
    freemarker.core.ParseException: Syntax error in template "fr.opensagres.xdocreport.document.odt.ODTReport@6ef81f31!content.xml" in line 4, column 3563: Encountered ":", but was expecting one of: ".." <DOT_DOT_LESS> "..*" "}" "." "[" "(" "?" "!" <TERMINATING_EXCLAM> "??" "+" "-" "*" "/" "%" "!=" "=" "==" <AND> <OR>
  3. 0

    Inserted dynamic Image gives Parsing error

    GitHub | 2 years ago | Mimi6257
    freemarker.core.ParseException: Parsing error in template "fr.opensagres.xdocreport.document.docx.DocxReport@6bba64!word/document.xml" in line 4, column 9352: Encountered "[/#escape]", but was expecting one of: \<ATTEMPT> \<IF> \<ELSE_IF> .........
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Escape of element names with XML datasource

    GitHub | 8 months ago | AndreaGiovannini
    freemarker.core.ParseException: Parsing error in template "fr.opensagres.xdocreport.document.docx.DocxReport@227c808d!word/document.xml" in line 4, column 186: Lexical error: encountered "\\" (92), after "\\".
  6. 0

    unable to use a simple raw string literals

    freemarker | 1 decade ago | nobody
    freemarker.core.ParseException: Token manager error: freemarker.core.TokenMgrError: Lexical error at line 1, column 17.  Encountered: "\{" (123), after : "\"$\\\"

    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.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>()
    2. FreeMarker
      Configuration.getTemplate
      1. freemarker.template.Template.<init>(Template.java:174)
      2. freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:447)
      3. freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:360)
      4. freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
      5. freemarker.template.Configuration.getTemplate(Configuration.java:578)
      6. freemarker.template.Configuration.getTemplate(Configuration.java:550)
      6 frames
    3. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.view.freemarker.FreeMarkerView.getTemplate(FreeMarkerView.java:350)
      2. org.springframework.web.servlet.view.freemarker.FreeMarkerView.checkResource(FreeMarkerView.java:203)
      3. org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:438)
      4. org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:186)
      5. org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:401)
      6. org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:95)
      7. org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1211)
      8. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1160)
      9. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
      10. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      11. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      12. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
      12 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      2 frames
    5. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    6. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      1 frame
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    8. org.craftercms.security
      RequestSecurityProcessorChainImpl.processRequest
      1. org.craftercms.security.servlet.filters.RequestSecurityFilter$1.processRequest(RequestSecurityFilter.java:199)
      2. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      3. org.craftercms.security.impl.processors.UrlAccessRestrictionCheckingProcessor.processRequest(UrlAccessRestrictionCheckingProcessor.java:170)
      4. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      5. org.craftercms.security.impl.processors.SecurityExceptionProcessor.processRequest(SecurityExceptionProcessor.java:87)
      6. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      7. org.craftercms.security.impl.processors.SavedRequestAwareProcessor.processRequest(SavedRequestAwareProcessor.java:83)
      8. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      9. org.craftercms.security.impl.processors.VerifyAccountProcessor.processRequest(VerifyAccountProcessor.java:96)
      10. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      11. org.craftercms.security.impl.processors.CreateProfileProcessor.processRequest(CreateProfileProcessor.java:154)
      12. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      13. org.craftercms.security.impl.processors.ResetPasswordProcessor.processRequest(ResetPasswordProcessor.java:126)
      14. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      15. org.craftercms.security.impl.processors.ForgotPasswordProcessor.processRequest(ForgotPasswordProcessor.java:130)
      16. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      17. org.craftercms.security.impl.processors.LogoutProcessor.processRequest(LogoutProcessor.java:138)
      18. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      19. org.craftercms.security.impl.processors.LoginProcessor.processRequest(LoginProcessor.java:174)
      20. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      20 frames
    9. org.craftercms.engine
      PreviewAuthenticationTokenResolvingProcessor.processRequest
      1. org.craftercms.engine.security.PreviewAuthenticationTokenResolvingProcessor.processRequest(PreviewAuthenticationTokenResolvingProcessor.java:79)
      1 frame
    10. org.craftercms.security
      RequestSecurityProcessorChainImpl.processRequest
      1. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      1 frame
    11. org.craftercms.engine
      SiteNameBasedTenantNameResolvingProcessor.processRequest
      1. org.craftercms.engine.security.SiteNameBasedTenantNameResolvingProcessor.processRequest(SiteNameBasedTenantNameResolvingProcessor.java:47)
      1 frame
    12. org.craftercms.security
      RequestSecurityFilter.doFilter
      1. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      2. org.craftercms.security.impl.processors.SaveAuthenticationCookieResponseWrappingProcessor.processRequest(SaveAuthenticationCookieResponseWrappingProcessor.java:63)
      3. org.craftercms.security.impl.processors.RequestSecurityProcessorChainImpl.processRequest(RequestSecurityProcessorChainImpl.java:51)
      4. org.craftercms.security.servlet.filters.RequestSecurityFilter.doFilterInternal(RequestSecurityFilter.java:137)
      5. org.craftercms.security.servlet.filters.RequestSecurityFilter.doFilter(RequestSecurityFilter.java:108)
      5 frames
    13. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      2 frames
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    15. org.craftercms.engine
      AbstractSiteContextResolvingFilter.doFilter
      1. org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.handleSiteNameResolved(AbstractSiteContextResolvingFilter.java:152)
      2. org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.doFilter(AbstractSiteContextResolvingFilter.java:98)
      3. org.craftercms.engine.servlet.filter.AbstractSiteContextResolvingFilter.doFilter(AbstractSiteContextResolvingFilter.java:91)
      3 frames
    16. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      2 frames
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    18. org.craftercms.engine
      ExceptionHandlingFilter.doFilter
      1. org.craftercms.engine.servlet.filter.ExceptionHandlingFilter.doFilter(ExceptionHandlingFilter.java:50)
      1 frame
    19. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
      2 frames
    20. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    21. org.craftercms.security
      RequestContextBindingFilter.doFilterInternal
      1. org.craftercms.security.servlet.filters.RequestContextBindingFilter.doFilterInternal(RequestContextBindingFilter.java:61)
      1 frame
    22. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      1 frame
    23. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      10 frames
    24. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      3 frames
    25. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      3. java.lang.Thread.run(Thread.java:722)
      3 frames