Announcement Announcement Module
Collapse
No announcement yet.
Controller message: action is not mapped to a valid resource Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controller message: action is not mapped to a valid resource

    Dear all,

    I get this error message when calling my controller:
    Code:
    16:42:56 ERROR DefaultHandlerExceptionResolver [req:6]: Unhandled exception: Entity: null Event information:SecurityEventCode[SUSPICIOUS_INPUT]
    
    ...MySecurityException: ServletPath [/webfakturaListAll.action] is not mapped to a valid ...resource.
    
    Entity: null Event information:SecurityEventCode[SUSPICIOUS_INPUT]
    
    ...SecurityException: ServletPath [/webfakturaListAll.action] is not mapped to a valid KundePortal resource.
    
            at ....security.AuthorizationInterceptor.preHandle(AuthorizationInterceptor.java:87)
    My controller…

    Code:
        <bean id="webfakturaListAllController" name="/webfakturaListAll.action"
    
              class="...webfaktura.WebfakturaListAllController" scope="prototype">
    
            <property name="successView" value="webfakturaList.action"/>
    
        </bean>
    Code:
    @ControllerActivityCode(ActivityCode.WEBFAKTURA)
    
    public class WebfakturaListAllController extends AbstractGenericCommandController<WebfakturaListCommand> {
    
        private static final Logger logger = Logger.getLogger(WebfakturaListAllController.class);
    
        private String successView;
    
        public void setSuccessView(String successView) {
    
            this.successView = successView;
    
        }
    
     
    
        @Override
    
        protected ModelAndView handleInternal(HttpServletRequest request, HttpServletResponse response,
    
                WebfakturaListCommand webfakturaListCommand, BindException errors) throws Exception {
    
            WebfakturaSearchBean.SESSION.remove(request);
    
            return new ModelAndView(new RedirectView(successView));
    
        }
    
    }
    Any idea..?

  • #2
    in fact it was the cache of IntelliJ that was holding a stale version of the source code.

    Comment

    Working...
    X