java.lang.IllegalStateException: Async result for handler [public <HIDDEN>] was not set during the specified timeToWait=0
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
You need to set the type property in your bean XML file.
<property name="targetType" value="some value" />
- Expert tip
If you're using boot 1.4.x you need to modify the @springBootTest annotation to @SpringBootTest(classes = DataFlowServerConfiguration.class). 1.3.8 doesn't have this problem as well.
Solutions on the web
via Spring JIRA by Dan Parrella, 1 year ago
via Spring JIRA by Dan Parrella, 2 years ago
via Stack Overflow by Tim
, 9 months agovia Spring JIRA by Erik-Berndt Scheper, 2 years ago
via Spring JIRA by Erik-Berndt Scheper, 1 year ago
via Spring JIRA by Ilayaperumal Gopinathan, 1 year ago
java.lang.IllegalStateException: Async result for handler [public <HIDDEN>] was not set during the specified timeToWait=0
at org.springframework.util.Assert.state(Assert.java:385)
at org.springframework.test.web.servlet.DefaultMvcResult.getAsyncResult(DefaultMvcResult.java:143)
at org.springframework.test.web.servlet.result.PrintingResultHandler.printAsyncResult(PrintingResultHandler.java:131)
at org.springframework.test.web.servlet.result.PrintingResultHandler.handle(PrintingResultHandler.java:79)
at org.springframework.test.web.servlet.MockMvc.applyDefaultResultActions(MockMvc.java:176)
at org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:146)