title: Spring AOP Advice Called Twice
body: <p>For some reason, my Spring AOP advices are being called twice.  I checked:</p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/7900905/spring-aop-advice-is-called-twice">Spring AOP advice is called twice</a> but I am not using the Component annotation, and am declaring the aspect bean once and annotating it with @Aspect and that's it.</p></li>
  <li><p>Somewhat belatedly I realized that one of my classes was not implementing an interface yet, which caused CGLIB2 requirements.  I fixed that, and the CGLIB2 problem went away, but the double invocation remains.</p></li>
  </ol>
  
  <p>Edit:</p>
  
  <p>Forgot to mention that I checked, and the method being advised is not called twice.</p>
  
  <p>2nd edit:</p>
  
  <p>I declare a class with @Aspect, and then I declare it as a bean in the application context.  There are no advices or pointcuts in the XML file.</p>
  
  <p>3rd edit:</p>
  
  <p>Also worth noting is that I log before and after the execution of the method being advised with Around:</p>
  
  <pre><code>log.info("before");
  
  pjp.proceed();
  
  log.info("after");
  </code></pre>
  
  <p>What I see is:</p>
  
  <pre><code>before
  before
  after
  after
  </code></pre>
  
  <p>Which is really weird.</p>
  
  <p>This happens for both @Before and @Around advice that I have set up.  I have yet to try the other types.</p>
  
  <p>Here is the pointcut declaration, with changed names:</p>
  
  <pre><code>@Around("execution(public java.util.List&lt;java.lang.String&gt; pac.age.names.myDAO.doSomething(java.lang.String, java.lang.String))")
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Snorkel</p>