Results 1 to 3 of 3

Thread: Error When using @Asynch support with named executor in 3.2.1

  1. #1

    Default Error When using @Asynch support with named executor in 3.2.1

    Test project: https://github.com/jasonparallel/asynchError (run junit and look for system out statements)

    When using the new value property of the asynch annotation execution will not occur.
    It appears that when AbstractAsyncExecutionAspect calls determineAsyncExecutor the beanFactory property of AsyncExecutionAspectSupport is null. Execution then stops at
    HTML Code:
    Assert.notNull(this.beanFactory,"BeanFactory must be set on " + this.getClass().getSimpleName() +" to access qualified executor [" + qualifier + "]");
    Is this a misconfiguration on my part or a bug in the implimentation?

  2. #2

    Default

    This was caused by running the aspectj-maven-plugin and not setting the mode="aspectj"

    <task:annotation-driven mode="aspectj"/>

  3. #3
    Join Date
    Apr 2007
    Posts
    307

    Default

    Thanks for following up, Jason.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •