1. Explore
  2. »
  3. Spring TestContext Framework
  4. »
  5. org.springframework.test.web.servlet
  6. »
  7. DefaultMvcResult

org.springframework.test.web.servletDefaultMvcResult errorsSpring TestContext Framework

Top patterns

  1. MockMvc failed waiting on async call

    This error happens when the test does the assert before the async result is complete.

    You do need to get the asyncResult before calling performing an async dispatcher.

  2. DefaultMvcResult.getAsyncResult() has thrown an IllegalStateException
    No solution
  3. DefaultMvcResult.getAsyncResult() has thrown an IllegalStateException
    No solution
Error patternsMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

MockMvc failed waiting on async call

java.lang.IllegalStateException
org.springframework.test.web.servlet.DefaultMvcResult.getAsyncResult
4Web pages
1Solution
IllegalStateExceptionDefaultMvcResult.getAsyncResult()4

DefaultMvcResult.getAsyncResult() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
org.springframework.test.web.servlet.DefaultMvcResult.getAsyncResult
3Web pages
IllegalStateExceptionDefaultMvcResult.getAsyncResult()3

DefaultMvcResult.getAsyncResult() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
org.springframework.test.web.servlet.DefaultMvcResult.getAsyncResult
2Web pages
IllegalStateExceptionDefaultMvcResult.getAsyncResult()2
Nothing to list here.
Nothing to list here.