Home  >  Forum  >  Spring
Post New Query

warning no match for this type name


joined on
March 16,2013
Asked on March 23,2013
Hi All,
I am running an example of aspect by @Configuration.

I am getting below error, can any one check.

Caused by: java.lang.IllegalArgumentException: warning no match for this type name: MyService [Xlint:invalidAbsoluteTypeName]
    at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:316)
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:207)
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:193)
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:182)
    at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:163)
    at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:209)
    at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:263)
 

joined on
March 18,2013
Replied on March 23,2013

Post your advice code of aspect class
joined on
March 16,2013
Replied on March 23,2013

I am using in the way.
@Before("execution(* MyService+.*(..))")
joined on
March 18,2013
Replied on March 23,2013

Use fully qualified class of MyService class

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us