AccessControlException in class.debugWriteFile() when running with JRockit with
-Djboss.aop.debug.classes=true
--------------------------------------------------------------------------------------------------------------
Key: JBAOP-604
URL:
http://jira.jboss.com/jira/browse/JBAOP-604
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.0.0.CR13
Reporter: Kabir Khan
Assigned To: Kabir Khan
Fix For: 2.0.0.CR14
java.lang.RuntimeException: java.lang.RuntimeException:
java.security.AccessControlException: access denied (java.io.FilePermission
./org/jboss/test/aop/duplicatemethod/TestDupe_$$_javassist_0$JoinPoint_foo175590682612627051.class
write)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:118)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:64)
at
org.jboss.aop.instrument.MethodJoinPointGenerator$BaseClassGenerator.generate(MethodJoinPointGenerator.java:239)
at
org.jboss.aop.instrument.MethodJoinPointGenerator.createJoinpointBaseClass(MethodJoinPointGenerator.java:172)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.createJoinpointClass(GeneratedAdvisorMethodExecutionTransformer.java:88)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addJoinpoint(GeneratedAdvisorMethodExecutionTransformer.java:76)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addMethodInfoFieldToGenAdvisor(GeneratedAdvisorMethodExecutionTransformer.java:58)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.transformMethod(GeneratedAdvisorMethodExecutionTransformer.java:294)
at
org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:141)
at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:739)
at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:117)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.instrumentClass(SuperClassesFirstWeavingStrategy.java:204)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.translate(SuperClassesFirstWeavingStrategy.java:70)
at org.jboss.aop.AspectManager.translate(AspectManager.java:1013)
at
org.jboss.aop.hook.JRockitClassPreProcessor.preProcess(JRockitClassPreProcessor.java:56)
at bea.jmapi.ClassLibraryImpl.preProcess(ClassLibraryImpl.java:151)
at bea.jmapi.JVMImpl.onClassFileHook(JVMImpl.java:190)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:163)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:337)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
at
org.jboss.test.aop.duplicatemethod.DuplicateMethodTestCase.testDupe(DuplicateMethodTestCase.java:72)
Caused by: java.lang.RuntimeException: java.security.AccessControlException: access denied
(java.io.FilePermission
./org/jboss/test/aop/duplicatemethod/TestDupe_$$_javassist_0$JoinPoint_foo175590682612627051.class
write)
at javassist.CtClass.debugWriteFile(CtClass.java:1289)
at javassist.CtClass.debugWriteFile(CtClass.java:1269)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:113)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:64)
at
org.jboss.aop.instrument.MethodJoinPointGenerator$BaseClassGenerator.generate(MethodJoinPointGenerator.java:239)
at
org.jboss.aop.instrument.MethodJoinPointGenerator.createJoinpointBaseClass(MethodJoinPointGenerator.java:172)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.createJoinpointClass(GeneratedAdvisorMethodExecutionTransformer.java:88)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addJoinpoint(GeneratedAdvisorMethodExecutionTransformer.java:76)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addMethodInfoFieldToGenAdvisor(GeneratedAdvisorMethodExecutionTransformer.java:58)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.transformMethod(GeneratedAdvisorMethodExecutionTransformer.java:294)
at
org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:141)
at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:739)
at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:117)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.instrumentClass(SuperClassesFirstWeavingStrategy.java:204)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.translate(SuperClassesFirstWeavingStrategy.java:70)
at org.jboss.aop.AspectManager.translate(AspectManager.java:1013)
at
org.jboss.aop.hook.JRockitClassPreProcessor.preProcess(JRockitClassPreProcessor.java:56)
at bea.jmapi.ClassLibraryImpl.preProcess(ClassLibraryImpl.java:151)
at bea.jmapi.JVMImpl.onClassFileHook(JVMImpl.java:190)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:163)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:337)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission
./org/jboss/test/aop/duplicatemethod/TestDupe_$$_javassist_0$JoinPoint_foo175590682612627051.class
write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
at java.io.FileOutputStream.<init>(FileOutputStream.java:169)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at javassist.CtClass$DelayedFileOutputStream.init(CtClass.java:1304)
at javassist.CtClass$DelayedFileOutputStream.write(CtClass.java:1318)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at java.io.FilterOutputStream.close(FilterOutputStream.java:140)
at javassist.CtClass.writeFile(CtClass.java:1257)
at javassist.CtClass.debugWriteFile(CtClass.java:1284)
at javassist.CtClass.debugWriteFile(CtClass.java:1269)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:113)
at
org.jboss.aop.instrument.TransformerCommon.compileOrLoadClass(TransformerCommon.java:64)
at
org.jboss.aop.instrument.MethodJoinPointGenerator$BaseClassGenerator.generate(MethodJoinPointGenerator.java:239)
at
org.jboss.aop.instrument.MethodJoinPointGenerator.createJoinpointBaseClass(MethodJoinPointGenerator.java:172)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.createJoinpointClass(GeneratedAdvisorMethodExecutionTransformer.java:88)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addJoinpoint(GeneratedAdvisorMethodExecutionTransformer.java:76)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.addMethodInfoFieldToGenAdvisor(GeneratedAdvisorMethodExecutionTransformer.java:58)
at
org.jboss.aop.instrument.GeneratedAdvisorMethodExecutionTransformer.transformMethod(GeneratedAdvisorMethodExecutionTransformer.java:294)
at
org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:141)
at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:739)
at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:117)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.instrumentClass(SuperClassesFirstWeavingStrategy.java:204)
at
org.jboss.aop.SuperClassesFirstWeavingStrategy.translate(SuperClassesFirstWeavingStrategy.java:70)
at org.jboss.aop.AspectManager.translate(AspectManager.java:1013)
at
org.jboss.aop.hook.JRockitClassPreProcessor.preProcess(JRockitClassPreProcessor.java:56)
at bea.jmapi.ClassLibraryImpl.preProcess(ClassLibraryImpl.java:151)
at bea.jmapi.JVMImpl.onClassFileHook(JVMImpl.java:190)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira