[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Exceptions while running woven code

I am trying my hand at AspectJ, i have a working Eclipse 2.1.1 and AspectJ 1.1.4
plug-in. With the pointcut here in an aspect named TestLogR1,

pointcut tracePoints() : !within(TestLogR1) && !cflowbelow(execution(*
java..*.*(..)));

i want to exclude all the method calls and their executions being logged onto my
console, but when i try running the main class, i get an exception that reads:

java.lang.NoSuchFieldError: ajc$cflowStack$1
at com.me..[main-class].<clinit>([main-class].java)
Exception in thread "main"

If i want to use execution() pointcut like this,

pointcut tracePoints() : !within(TestLogR1) && !(execution(* java..*.*(..)));

i get an exception that reads:

java.lang.NoSuchMethodError:
com.me.TestLogR1.ajc$after$com_me_TestLogR1$264(Lorg/aspectj/lang/JoinPoint;)V
at com.me..[main-class].<clinit>([main-class].java)
Exception in thread "main"

Please let me know where i am going wrong.

Regards,
Rohith.