[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] RuntimeException ?

After Alex and Adrian spotted out the problem with ltw, here is a nice one, at the very beginning after lanching my test case:

1.
info using classpath: [/usr/java/jdk1.5.0/jre/lib/rt.jar,
/usr/java/jdk1.5.0/jre/lib/i18n.jar,
/usr/java/jdk1.5.0/jre/lib/sunrsasign.jar,
/usr/java/jdk1.5.0/jre/lib/jsse.jar,
/usr/java/jdk1.5.0/jre/lib/jce.jar,
/usr/java/jdk1.5.0/jre/lib/charsets.jar,
/usr/java/jdk1.5.0/jre/classes]
2.
info using aspectpath: []
3.
info zipfile classpath entry does not exist:
/usr/java/jdk1.5.0/jre/lib/i18n.jar
4.
info zipfile classpath entry does not exist:
/usr/java/jdk1.5.0/jre/lib/sunrsasign.jar
5.
info directory classpath entry does not exist:
/usr/java/jdk1.5.0/jre/classes
6.
info register classloader sun.misc.Launcher$AppClassLoader@26099296
7.
info using (-Daj5.def) META-INF/aop.xml
8.
warning Register definition failed -- (RuntimeException) Cannot
register non aspect: @missing@ ,
org.aormf.aspects.ExecutionMonitorAspect
9.
Cannot register non aspect: @missing@ ,
org.aormf.aspects.ExecutionMonitorAspect
10.
java.lang.RuntimeException: Cannot register non aspect: @missing@
, org.aormf.aspects.ExecutionMonitorAspect
11.
at
org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeaver.java:169)
12.
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerAspects(ClassLoaderWeavingAdaptor.java:232)
13.
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerDefinitions(ClassLoaderWeavingAdaptor.java:132)
14.
at
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.<init>(ClassLoaderWeavingAdaptor.java:93)
15.
at
org.aspectj.weaver.loadtime.Aj$WeaverContainer.getWeaver(Aj.java:81)
16.
at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:54)
17.
at
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:52)
18.
at
sun.instrument.TransformerManager.transform(TransformerManager.java:122)
19.
at
sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
20.
at java.lang.ClassLoader.defineClass1(Native Method)
21.
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
22.
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
23.
at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
24.
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
25.
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
26.
at java.security.AccessController.doPrivileged(Native Method)
27.
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
28.
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
29.
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
30.
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
31.
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
32.
33.
package org.aormf.aspects;
34.
35.
import org.aormf.util.*;
36.
37.
public aspect ExecutionMonitorAspect {
38.
39.
/**
40.
* Call to (sub)types that contains an annotation type
41.
*/ 42.
pointcut annotatedResourceInvocation():
43.
call(* (@MemberOfMonitoredSet *)+.*(..));
44.
45.
declare warning: annotatedResourceInvocation() : "matched";
46.
47.
before(): annotatedResourceInvocation() {
48.
System.out.println("PRINTED BY ADVICE");
49.
}
50.
}



this is really at the very beginning, nothig else is printed before this stack trace.
any idea ?


thanks,
Valerio