java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to

Spring JIRA | Mikael Norrman | 1 year ago
  1. 0

    When running my Spring MVC application on Wildfly 8.2 application server and using DeferredResult I get an exception from the application server, caught by Spring, that no servlet context is found. I tried using the simplest possible form of DeferredResult to get this error and it fails every time. (I erased company-specific class from the following stacktrace) {noformat} Exception in thread "Thread-118" java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:158) at org.springframework.security.web.servletapi.HttpServlet3RequestFactory$SecurityContextAsyncContext.dispatch(HttpServlet3RequestFactory.java:251) at org.springframework.web.context.request.async.StandardServletAsyncWebRequest.dispatch(StandardServletAsyncWebRequest.java:123) at org.springframework.web.context.request.async.WebAsyncManager.setConcurrentResultAndDispatch(WebAsyncManager.java:351) at org.springframework.web.context.request.async.WebAsyncManager.access$200(WebAsyncManager.java:57) at org.springframework.web.context.request.async.WebAsyncManager$7.handleResult(WebAsyncManager.java:417) at org.springframework.web.context.request.async.DeferredResult.setResultInternal(DeferredResult.java:194) at org.springframework.web.context.request.async.DeferredResult.setResult(DeferredResult.java:183) at com.*******.Controller$1.run(********Controller.java:444) at java.lang.Thread.run(Thread.java:745) {noformat}

    Spring JIRA | 1 year ago | Mikael Norrman
    java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to
  2. 0

    When running my Spring MVC application on Wildfly 8.2 application server and using DeferredResult I get an exception from the application server, caught by Spring, that no servlet context is found. I tried using the simplest possible form of DeferredResult to get this error and it fails every time. (I erased company-specific class from the following stacktrace) {noformat} Exception in thread "Thread-118" java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:158) at org.springframework.security.web.servletapi.HttpServlet3RequestFactory$SecurityContextAsyncContext.dispatch(HttpServlet3RequestFactory.java:251) at org.springframework.web.context.request.async.StandardServletAsyncWebRequest.dispatch(StandardServletAsyncWebRequest.java:123) at org.springframework.web.context.request.async.WebAsyncManager.setConcurrentResultAndDispatch(WebAsyncManager.java:351) at org.springframework.web.context.request.async.WebAsyncManager.access$200(WebAsyncManager.java:57) at org.springframework.web.context.request.async.WebAsyncManager$7.handleResult(WebAsyncManager.java:417) at org.springframework.web.context.request.async.DeferredResult.setResultInternal(DeferredResult.java:194) at org.springframework.web.context.request.async.DeferredResult.setResult(DeferredResult.java:183) at com.*******.Controller$1.run(********Controller.java:444) at java.lang.Thread.run(Thread.java:745) {noformat}

    Spring JIRA | 1 year ago | Mikael Norrman
    java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to
  3. 0

    IllegalArgumentException - 'No servlet context to dispatch to' error in undertow for async servlet

    Stack Overflow | 1 year ago | Dhamodharan Devarajan
    java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:173) [undertow-servlet-1.1.0.Final.jar!/:1.1.0.Final]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jetty, DefaultServlet, BlockingCallback and TimeoutException issue

    codegur.net | 7 months ago
    java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:173) [undertow-servlet-1.1.0.Final.jar!/:1.1.0.Final]
  6. 0

    core.match compile issue

    GitHub | 4 years ago | lynaghk
    java.lang.IllegalArgumentException: No method in multimethod 'to-source' for dispatch value: class clojure.core.match.WildcardPattern, compiling:(bcbio/variation/filter/classify.clj:70)

    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. java.lang.IllegalArgumentException

      UT010046: No servlet context at to dispatch to

      at io.undertow.servlet.spec.AsyncContextImpl.dispatch()
    2. Undertow Servlet
      AsyncContextImpl.dispatch
      1. io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:158)
      1 frame
    3. Spring Security
      HttpServlet3RequestFactory$SecurityContextAsyncContext.dispatch
      1. org.springframework.security.web.servletapi.HttpServlet3RequestFactory$SecurityContextAsyncContext.dispatch(HttpServlet3RequestFactory.java:251)
      1 frame
    4. Spring
      DeferredResult.setResult
      1. org.springframework.web.context.request.async.StandardServletAsyncWebRequest.dispatch(StandardServletAsyncWebRequest.java:123)
      2. org.springframework.web.context.request.async.WebAsyncManager.setConcurrentResultAndDispatch(WebAsyncManager.java:351)
      3. org.springframework.web.context.request.async.WebAsyncManager.access$200(WebAsyncManager.java:57)
      4. org.springframework.web.context.request.async.WebAsyncManager$7.handleResult(WebAsyncManager.java:417)
      5. org.springframework.web.context.request.async.DeferredResult.setResultInternal(DeferredResult.java:194)
      6. org.springframework.web.context.request.async.DeferredResult.setResult(DeferredResult.java:183)
      6 frames