title: Exception evaluating SpringEL expression
body: <p>I am trying to use thymeleaf together with spring and I have a problem to parse the following <code>header.html</code> fragment:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="navbar navbar-inverse navbar-fixed-top" th:fragment="header"&gt;
        &lt;div class="container"&gt;
          &lt;div class="navbar-header"&gt;
            &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse"&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;span class="icon-bar"&gt;&lt;/span&gt;
            &lt;/button&gt;
            &lt;a class="navbar-brand" href="#"&gt;My project&lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="navbar-collapse collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li class="active"&gt;&lt;a href="#" th:href="@{/}"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" th:href="@{/message}"&gt;Messages&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#" th:href="@{/task}"&gt;Tasks&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li th:if="${#authorization.expression('!isAuthenticated()')}"&gt;
                &lt;a href="/signin" th:href="@{/signin}"&gt;Sign in&lt;/a&gt;
              &lt;/li&gt;
              &lt;li th:if="${#authorization.expression('isAuthenticated()')}"&gt;
                &lt;a href="/logout" th:href="@{/logout}"&gt;Logout&lt;/a&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The exception is returning when trying to parse fragment and expression. The exception is:</p>
  
  <pre><code>HTTP Status 500 - Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "#authorization.expression('!isAuthenticated()')" (fragments/header:25)
  
  
  message Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "#authorization.expression('!isAuthenticated()')" (fragments/header:25)
  
  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.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "#authorization.expression('!isAuthenticated()')" (fragments/header:25)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:96)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
      org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
      org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
  root cause
  
  org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "#authorization.expression('!isAuthenticated()')" (fragments/header:25)
      org.thymeleaf.spring4.expression.SpelVariableExpressionEvaluator.evaluate(SpelVariableExpressionEvaluator.java:161)
      org.thymeleaf.standard.expression.VariableExpression.executeVariable(VariableExpression.java:154)
      org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:59)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:103)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:133)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:120)
      org.thymeleaf.standard.processor.attr.AbstractStandardConditionalVisibilityAttrProcessor.isVisible(AbstractStandardConditionalVisibilityAttrProcessor.java:66)
      org.thymeleaf.processor.attr.AbstractConditionalVisibilityAttrProcessor.processAttribute(AbstractConditionalVisibilityAttrProcessor.java:59)
      org.thymeleaf.processor.attr.AbstractAttrProcessor.doProcess(AbstractAttrProcessor.java:87)
      org.thymeleaf.processor.AbstractProcessor.process(AbstractProcessor.java:212)
      org.thymeleaf.dom.Node.applyNextProcessor(Node.java:1017)
      org.thymeleaf.dom.Node.processNode(Node.java:972)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.Document.process(Document.java:93)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1155)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011)
      org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:335)
      org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190)
      org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1244)
      org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:96)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
      org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
      org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
  root cause
  
  org.springframework.expression.spel.SpelEvaluationException: EL1011E:(pos 15): Method call: Attempted to call method expression(java.lang.String) on null context object
      org.springframework.expression.spel.ast.MethodReference.throwIfNotNullSafe(MethodReference.java:144)
      org.springframework.expression.spel.ast.MethodReference.getValueRef(MethodReference.java:73)
      org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:66)
      org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:87)
      org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:120)
      org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:267)
      org.thymeleaf.spring4.expression.SpelVariableExpressionEvaluator.evaluate(SpelVariableExpressionEvaluator.java:139)
      org.thymeleaf.standard.expression.VariableExpression.executeVariable(VariableExpression.java:154)
      org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:59)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:103)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:133)
      org.thymeleaf.standard.expression.Expression.execute(Expression.java:120)
      org.thymeleaf.standard.processor.attr.AbstractStandardConditionalVisibilityAttrProcessor.isVisible(AbstractStandardConditionalVisibilityAttrProcessor.java:66)
      org.thymeleaf.processor.attr.AbstractConditionalVisibilityAttrProcessor.processAttribute(AbstractConditionalVisibilityAttrProcessor.java:59)
      org.thymeleaf.processor.attr.AbstractAttrProcessor.doProcess(AbstractAttrProcessor.java:87)
      org.thymeleaf.processor.AbstractProcessor.process(AbstractProcessor.java:212)
      org.thymeleaf.dom.Node.applyNextProcessor(Node.java:1017)
      org.thymeleaf.dom.Node.processNode(Node.java:972)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)
      org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)
      org.thymeleaf.dom.Node.processNode(Node.java:990)
      org.thymeleaf.dom.Document.process(Document.java:93)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1155)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060)
      org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011)
      org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:335)
      org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190)
      org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1244)
      org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1027)
      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:971)
      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:96)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
      org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
      org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
  </code></pre>
  
  <p>What is wrong? Am I missing something in configuration of thymeleaf?</p>