Spring MVC: formal unbound in pointcut
<p>I have this class in my Spring Web model-view-controller (MVC) framework. I am using aspect-oriented programming (AOP), a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. 
Everything is fine with this class</p>

<pre><code>@Aspect
public class MarketingAspect extends ServiceSupport {

    @Pointcut("execution(* com.tdk.iot.services.client.LicenseService.*(..))")
    public void handleServiceMethod() {
    }

    @Pointcut("execution(* com.tdk.iot.services.client.ApplicantService.*(..))")
    public void handleApplicantServiceMethod() {
    }


    @Before("com.tdk.iot.services.aop.ApplicantAspect.handleServiceMethod()")
    public void before(JoinPoint _jp) {
        User user = getLDAPUser();
        if(user != null &amp;&amp;( (user.getUserRole() != UserRole.MARKETING)) {
            throw new NoSufficientRoleException(user == null ? null : user.getUserRole(), UserRole.MARKETING);
        }
    }


    @Before("com.tdk.iot.services.aop.ApplicantAspect.handleApplicantServiceMethod()")
    public void checkRolebefore(JoinPoint _jp) {
        User user = getLDAPUser();
        if(user != null &amp;&amp;( (user.getUserRole() != UserRole.MARKETING))) {
            throw new NoSufficientRoleException(user == null ? null : user.getUserRole(), UserRole.MARKETING);
        }
    }   
}
</code></pre>

<p>I have changed the method notation  getLDAPUser and now receives HttpServletRequest request as a parameter, so I modified the method as</p>

<pre><code>@Before("com.tdk.iot.services.aop.ApplicantAspect.handleApplicantServiceMethod()")
public void checkRolebefore(JoinPoint _jp, HttpServletRequest request) {
    User user = getLDAPUser(request);
    if(user != null &amp;&amp;( (user.getUserRole() != UserRole.MARKETING))) {
        throw new NoSufficientRoleException(user == null ? null : user.getUserRole(), UserRole.MARKETING);
    }
}   
</code></pre>

<p>and after modified this method I got this ERROR</p>

<pre><code>java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
</code></pre>

<p>in my XML:</p>

<pre><code>&lt;!-- Scan for aspects --&gt;
    &lt;aop:aspectj-autoproxy /&gt;       
    &lt;bean id="marketingAspect" class="com.tdk.iot.services.aop.MarketingAspect" /&gt;
</code></pre>