title: Spring AOP @AfterThrowing not working properly, error at ::0 formal unbound in pointcut
body: <p>I am defining the <code>@pointcut</code> expression like below. </p>
  
  <pre><code>@Pointcut(
          "execution(* com.xyz..*(..)) &amp;&amp; " +
          "!within(is(EnumType)) &amp;&amp; " +
          "!within(is(FinalType))"
      )
  protected void loggingOperation() {
  
  }
  @Before("loggingOperation()")
      public void logEntry1(final JoinPoint joinPoint) {
  
          logger.log(Level.INFO, "Entering " + joinPoint.getTarget().getClass().getName() + " ##### "
                  + joinPoint.getSignature().getName(), joinPoint.getArgs());
      }
  
      @After("loggingOperation()")
      public void logExit1(final JoinPoint joinPoint) {
          logger.log(Level.INFO, "Exiting " + joinPoint.getTarget().getClass().getName() + " ##### "
                  + joinPoint.getSignature().getName(), joinPoint.getArgs());
  
      }
  
       @AfterThrowing("loggingOperation()")
       public void logException1(JoinPoint joinPoint, Throwable e) {
       logger.log(Level.SEVERE,
       joinPoint.getTarget().getClass().getName() + " ##### " +
       joinPoint.getSignature().getName(), e);
       }
  </code></pre>
  
  <p>it returns error saying:</p>
  
  <pre><code> Error creating bean with name 'resourceDataSource' defined in class path resource [resource-dataSource-dbcp-beans.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
      at 
  </code></pre>
  
  <p>The above code works fine if I remove <code>@AfterThrowing</code> so now the problem is with <code>@AfterThrowing</code>.</p>
  
  <p>The earlier problem got solved after I removed aspectjrt-1.6 jar from <code>shared\lib</code></p>