title: Spring AOP is being invoked unexpectedly
body: <p>I have configured Spring AOP for 2 different packages in our application to log exceptions.
  There are 2 different configurations for each package:</p>
  
  <pre><code>&lt;aop:config&gt;
      &lt;aop:aspect id="aspectLoggging" ref="abcExceptionAspect"&gt;
          &lt;aop:pointcut id="pointCut"
              expression="execution(* com.abc.*.*(..))" /&gt;
          &lt;aop:before method="logBefore" pointcut-ref="pointCut" /&gt;
          &lt;aop:after-throwing method="logExceptionABC"
              throwing="error" pointcut-ref="pointCut" /&gt;
          &lt;aop:after method="logAfter" pointcut-ref="pointCut" /&gt;
      &lt;/aop:aspect&gt;
  &lt;/aop:config&gt;
  
  &lt;aop:config&gt;
      &lt;aop:aspect id="aspectLoggging" ref="xyzlogAspect"&gt;
          &lt;aop:pointcut id="pointCut"
              expression="execution(* com.xyz.*.*(..))" /&gt;
          &lt;aop:before method="logBefore" pointcut-ref="pointCut" /&gt;
          &lt;aop:after method="logAfter" pointcut-ref="pointCut" /&gt;
          &lt;aop:after-throwing method="logExceptionXYZ"
              throwing="error" pointcut-ref="pointCut" /&gt;
      &lt;/aop:aspect&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>In a service method call, there are calls to the methods of the classes belonging to each of these packages:</p>
  
  <p>public void method()
  {</p>
  
  <p>method1(); -> package abc</p>
  
  <p>method2(); -> package xyz</p>
  
  <p>}</p>
  
  <p>Some exception occurs in method2 which invokes logExceptionXYZ method where we are wrapping it in a generic exception, say ExceptionXYZ, and throwing it further.</p>
  
  <p>But some how after this, the logExceptionABC method also gets invoked and throws a generic exception , say ExceptionABC.</p>
  
  <p>I'm not able to understand as why logExceptionABC method is getting invoked?</p>
  
  <p>Please let me know if someone knows about such an issue!</p>
  
  <p>Regards,
  Rahul</p>