1 Reply Latest reply on Dec 7, 2006 7:56 AM by Adrian Brock

    JoinpointTest is broken

    Scott Stark Master

      In checking the vfs changes by running the ContainerAllTestSuite, I see all of the org.jboss.test.joinpoint.test.JoinpointTest fail with this type of compile error:

      javassist.CannotCompileException: by java.lang.IllegalAccessError: tried to access class sun/reflect/MagicAccessorImpl from class org/jboss/reflect/plugins/javassist/JavassistMethod1
       at javassist.ClassPool.toClass(ClassPool.java:904)
       at javassist.ClassPool.toClass(ClassPool.java:847)
       at javassist.ClassPool.toClass(ClassPool.java:805)
       at javassist.CtClass.toClass(CtClass.java:1037)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:237)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:1)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createMethod(JavassistReflectionFactory.java:233)
       at org.jboss.reflect.plugins.javassist.JavassistMethodInfo.invoke(JavassistMethodInfo.java:150)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.test.joinpoint.test.JoinpointTest.testObjectMethodInvoke(JoinpointTest.java:113)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
       at junit.framework.TestCase.runTest(TestCase.java:154)
       at junit.framework.TestCase.runBare(TestCase.java:127)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.framework.TestSuite.runTest(TestSuite.java:208)
       at junit.framework.TestSuite.run(TestSuite.java:203)
       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
       at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.extensions.TestSetup.run(TestSetup.java:23)
       at junit.framework.TestSuite.runTest(TestSuite.java:208)
       at junit.framework.TestSuite.run(TestSuite.java:203)
       at junit.framework.TestSuite.runTest(TestSuite.java:208)
      Caused by: java.lang.IllegalAccessError: tried to access class sun/reflect/MagicAccessorImpl from class org/jboss/reflect/plugins/javassist/JavassistMethod1
       at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.ProtectionDomain;)Ljava.lang.Class;(Unknown Source)
       at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BII)Ljava.lang.Class;(Unknown Source)
       at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
       at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
       at javassist.ClassPool.toClass2(ClassPool.java:916)
       at javassist.ClassPool.toClass(ClassPool.java:898)
       at javassist.ClassPool.toClass(ClassPool.java:847)
       at javassist.ClassPool.toClass(ClassPool.java:805)
       at javassist.CtClass.toClass(CtClass.java:1037)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:237)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory$1.run(JavassistReflectionFactory.java:1)
       at org.jboss.reflect.plugins.javassist.JavassistReflectionFactory.createMethod(JavassistReflectionFactory.java:233)
       at org.jboss.reflect.plugins.javassist.JavassistMethodInfo.invoke(JavassistMethodInfo.java:150)
       at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
       at org.jboss.test.joinpoint.test.JoinpointTest.testObjectMethodInvoke(JoinpointTest.java:113)
      ...