[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] LTW of an applet
|
I've set the trace option and got the following:
5:38:10.950 thread applet-SmApplet.class ? [WeavingAdaptor] weaveinfo Join
point 'method-execution(void
demoAOP.HelloMainApplet.buildScreen(javax.swing.JApplet))' in Type
'demoAOP.HelloMainApplet' (HelloMainApplet.java:13) advised by around advice
from 'demoAOP.AspectHelloLabel'
(demoAOP-1.0.jar!AspectHelloLabel.class:15(from AspectHelloLabel.aj))
15:38:10.950 thread applet-SmApplet.class ? [WeavingAdaptor] weaveinfo Join
point 'method-execution(void
demoAOP.HelloMainApplet.buildScreen(javax.swing.JApplet))' in Type
'demoAOP.HelloMainApplet' (HelloMainApplet.java:13) advised by after advice
from 'demoAOP.AspectHelloLabel'
(demoAOP-1.0.jar!AspectHelloLabel.class:19(from AspectHelloLabel.aj))
15:38:10.950 thread applet-SmApplet.class <
org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify
15:38:10.950 thread applet-SmApplet.class <
org.aspectj.weaver.bcel.BcelWeaver.weave java.util.ArrayList(1)
15:38:10.950 thread applet-SmApplet.class <
org.aspectj.weaver.tools.WeavingAdaptor.weaveClass byte[1672]
15:38:10.950 thread applet-SmApplet.class <
org.aspectj.weaver.loadtime.WeavingURLClassLoader.defineClass class
demoAOP.HelloMainApplet
InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at SmApplet.init(SmApplet.java:35)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission C:\workspace\HackClassLoader\target\demoAOP-1.0.jar
read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at
org.aspectj.weaver.bcel.ClassPathManager$ZipFileEntry.ensureOpen(ClassPathManager.java:269)
at
org.aspectj.weaver.bcel.ClassPathManager$ZipFileEntry.find(ClassPathManager.java:243)
at org.aspectj.weaver.bcel.ClassPathManager.find(ClassPathManager.java:101)
at
org.aspectj.weaver.ExtensibleURLClassLoader.getBytes(ExtensibleURLClassLoader.java:70)
at
org.aspectj.weaver.loadtime.WeavingURLClassLoader.getBytes(WeavingURLClassLoader.java:165)
at
org.aspectj.weaver.ExtensibleURLClassLoader.findClass(ExtensibleURLClassLoader.java:50)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at demoAOP.HelloMainApplet.buildScreen(HelloMainApplet.java:1)
at demoAOP.HelloMainApplet.init(HelloMainApplet.java:9)
... 7 more
so... the classloader is familiar with my aspects - why do I have
securityproblem if the aspects jar was already availiable???? - I got this
error ONLY in java 5
--
View this message in context: http://www.nabble.com/LTW-of-an-applet-tp20109437p20173698.html
Sent from the AspectJ - users mailing list archive at Nabble.com.