You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TaskExecutor not initialized in task namespace. Adding this to the ExecutorBeanDefinitionPasrserTests:
FutureTask<String> task = new FutureTask<String>(new Callable<String>() {
public String call() throws Exception {
return "foo";
}
});
((ThreadPoolTaskExecutor)executor).execute(task);
assertEquals("foo", task.get());
results in
java.lang.IllegalStateException: ThreadPoolTaskExecutor not initialized
at org.springframework.util.Assert.state(Assert.java:384)
at org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.getThreadPoolExecutor(ThreadPoolTaskExecutor.java:217)
at org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor.execute(ThreadPoolTaskExecutor.java:239)
at org.springframework.scheduling.config.ExecutorBeanDefinitionParserTests.defaultExecutor(ExecutorBeanDefinitionParserTests.java:61)
...
Dave Syer opened SPR-6444 and commented
TaskExecutor not initialized in task namespace. Adding this to the ExecutorBeanDefinitionPasrserTests:
results in
Affects: 3.0 RC2
Referenced from: commits e101611
The text was updated successfully, but these errors were encountered: