• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut annotation

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Around("annotation(com.daya.java.aspect.Loggable)")
public Object myAroundAdvice(ProceedingJoinPoint proceedingJoinPoint){ // proceedingJoinPoint is mandatory
Object returnValue=null;
try {
System.out.println("Before Executon of Target method");
returnValue = proceedingJoinPoint.proceed();
System.out.println("After Executon of Target method");
} catch (Throwable e) {
System.out.println("Exception");
}
System.out.println("After Finally");
return returnValue;
}

I tried to create custom annotation using @Around I am getting below exception. Can anyone please help me out.


nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut annotation
reply
    Bookmark Topic Watch Topic
  • New Topic