java.lang.IllegalStateException: No executor qualifier specified and no default executor set on AnnotationAsyncExecutionAspect either

Spring JIRA | Janning Vygen | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IllegalStateException

    No executor qualifier specified and no default executor set on AnnotationAsyncExecutionAspect either

    at org.springframework.aop.interceptor.AsyncExecutionAspectSupport.determineAsyncExecutor()
  2. Spring AOP
    AsyncExecutionAspectSupport.determineAsyncExecutor
    1. org.springframework.aop.interceptor.AsyncExecutionAspectSupport.determineAsyncExecutor(AsyncExecutionAspectSupport.java:104)
    1 frame
  3. Spring Aspects
    AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3e
    1. org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3e(AbstractAsyncExecutionAspect.aj:60)
    1 frame