title: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
body: <p><strong>Thinker.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>package springdemo2;
  
  public interface Thinker {
      void thinkOfSomething(String thoughts); 
  }
  </code></pre>
  
  <p><strong>Volunteer.java</strong>
  </p>
  
  <pre><code>package springdemo2;
  
  public class Volunteer implements Thinker{
      private String thoughts;
  
      @Override
      public void thinkOfSomething(String thoughts) {
          this.thoughts=thoughts;
      }
  
      public String getThoughts(){
          return thoughts;
      }
  }
  </code></pre>
  
  <p><strong>MindReader.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>package springdemo2;
  
  public interface MindReader {
      void interceptThoughts(String thoughts);
  
      String getThoughts();
  }
  </code></pre>
  
  <p><strong>Magician.java</strong></p>
  
  <pre class="lang-java prettyprint-override"><code>package springdemo2;
  
  import org.aspectj.lang.annotation.Aspect; 
  import org.aspectj.lang.annotation.Before; 
  import org.aspectj.lang.annotation.Pointcut;
  
  @Aspect 
  public class Magician implements MindReader {
  
      private String thoughts;
  
      @Pointcut("execution(* springdemo2."
              + "Thinker.thinkOfSomething(String)) and args(thoughts)")
      public void thinking(String thoughts){
      }
  
      @Override
      @Before("thinking(thoughts)")
      public void interceptThoughts(String thoughts) {
          this.thoughts=thoughts;
          System.out.println("Advice method intercepted Thoughts..."+thoughts);
      }
  
      @Override
      public String getThoughts() {
          return thoughts;
      }
  }
  </code></pre>
  
  <p><strong>XML(Spring)</strong></p>
  
  <p>I have included <code>&lt;aop:aspectj-autoproxy/&gt;</code> in my XML file.</p>
  
  <p>I got following Error Message</p>
  
  <pre class="lang-none prettyprint-override"><code> java.lang.IllegalArgumentException: error at ::0 formal unbound in
   pointcut
  </code></pre>