grails.web.mapping.exceptions.UrlMappingException: Unable to establish controller name to dispatch for [org.grails.web.m apping.RegexUrlMapping$1@32648142]. Dynamic closure invocation returned null. Check your mapping file is correct, when a ssigning the controller name as a request parameter it cannot be an optional token!

GitHub | runwolf | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Controller forward does not seem to work with grails 3.1.X and spring-security-core:3.1.1

    GitHub | 8 months ago | runwolf
    grails.web.mapping.exceptions.UrlMappingException: Unable to establish controller name to dispatch for [org.grails.web.m apping.RegexUrlMapping$1@32648142]. Dynamic closure invocation returned null. Check your mapping file is correct, when a ssigning the controller name as a request parameter it cannot be an optional token!

    Root Cause Analysis

    1. grails.web.mapping.exceptions.UrlMappingException

      Unable to establish controller name to dispatch for [org.grails.web.m apping.RegexUrlMapping$1@32648142]. Dynamic closure invocation returned null. Check your mapping file is correct, when a ssigning the controller name as a request parameter it cannot be an optional token!

      at grails.artefact.Interceptor$Trait$Helper.doesMatch()
    2. Grails
      Interceptor$Trait$Helper.doesMatch
      1. grails.artefact.Interceptor$Trait$Helper.doesMatch(Interceptor.groovy:97)
      2. grails.artefact.Interceptor$Trait$Helper.doesMatch(Interceptor.groovy:69)
      2 frames
    3. grails.plugin.springsecurity
      DebugFilter.doFilter
      1. grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64)
      2. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
      3. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
      4. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
      5. grails.plugin.springsecurity.web.filter.DebugFilter.doFilter(DebugFilter.groovy:72)
      5 frames
    4. grails.plugin.cache
      AbstractFilter.doFilter
      1. grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:193)
      2. grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
      2 frames
    5. grails.artefact.controller
      RequestForwarder$Trait$Helper.forward
      1. grails.artefact.controller.support.RequestForwarder$Trait$Helper.forward(RequestForwarder.groovy:111)
      1 frame
    6. com.la
      PublicEventController$$EPsqmRW5.index
      1. com.la.PublicEventController$$EPsqmRW5.index(PublicEventController.groovy:39)
      1 frame
    7. grails.plugin.springsecurity
      SecurityRequestHolderFilter.doFilter
      1. grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64)
      2. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
      3. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
      4. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
      5. grails.plugin.springsecurity.web.filter.DebugFilter.invokeWithWrappedRequest(DebugFilter.groovy:102)
      6. grails.plugin.springsecurity.web.filter.DebugFilter.doFilter(DebugFilter.groovy:69)
      7. grails.plugin.springsecurity.web.UpdateRequestContextHolderExceptionTranslationFilter.doFilter(UpdateRequestContextHolderExceptionTranslationFilter.groovy:64)
      8. grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
      9. grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
      10. grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
      10 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames