Announcement Announcement Module
Collapse
No announcement yet.
HandlerExceptionResolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HandlerExceptionResolver

    Having a MultiActionController class implmenting the HandlerExceptionResolver.

    The resolveException method is properly used in case of any thrown exception.

    I use a JsonView as my custom view to return a json-parsed string instead of a jstl or jsp page.
    The view only returns a single string.

    Tracing my log I can ses that the json response string is properly created
    Rendering view with name 'jsonView' with model {error=LOGGED_OUT} and static attributes {}

    But instead of simply returning this string, I receive a HTTP Status 500 page with a typical stacktrace information.

    I should add that the JsonView is properly working for all return types except this exception case. A typical log entry for a successful request looks like:
    Rendering view with name 'jsonView' with model {sessionKey=ZB9l0SesP5pyDNaKXOwonmiMk7cb1qUGTVFfJv 3r2h6dtIWY4A} and static attributes {}



    Any idea why this happens ??
Working...
X