3 Replies Latest reply on Apr 19, 2006 9:43 AM by Kabir Khan

    AOP/MC integration now in a separate project

    Adrian Brock Master

      I've moved the aop/mc integration into a separate project.
      I left the package names still saying "prototype".

      Some of the tests were already broken, looks like more regression?
      So I don't know whether I moved everything correctly?

      I also deleted my old and unused ProxyAdvisor class.

      To get the new project:

      cd jboss-head
      cvs co aop-mc-int
      


        • 1. Re: AOP/MC integration now in a separate project
          Adrian Brock Master

          I think I've got all the failing tests down to one problem now?

          6613 ERROR [AbstractKernelController] Error installing to Instantiated: name=Bean1 state=Described
          java.lang.RuntimeException: javassist.CannotCompileException: [source error] no such field: interceptors
           at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.getProxy(GeneratedAOPProxyFactory.java:109)
           at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:73)
           at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:41)
           at org.jboss.aop.microcontainer.prototype.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:66)
           at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
           at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$InstantiateAction.installAction(KernelControllerContextActions.java:383)
           at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175)
           at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
           at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
           at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
           at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
           at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:64)
           at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:77)
           at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:146)
           at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.deploy(MicrocontainerTestDelegate.java:182)
           at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.deploy(MicrocontainerTestDelegate.java:253)
           at org.jboss.aop.microcontainer.junit.AOPMicrocontainerTestDelegate.deploy(AOPMicrocontainerTestDelegate.java:65)
           at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.setUp(MicrocontainerTestDelegate.java:76)
           at org.jboss.test.AbstractTestSetup.setUp(AbstractTestSetup.java:63)
           at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
           at junit.framework.TestResult.runProtected(TestResult.java:124)
           at junit.extensions.TestSetup.run(TestSetup.java:23)
           at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
           at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
           at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
          Caused by: javassist.CannotCompileException: [source error] no such field: interceptors
           at javassist.CtBehavior.setBody(CtBehavior.java:288)
           at javassist.CtBehavior.setBody(CtBehavior.java:257)
           at javassist.CtNewMethod.make(CtNewMethod.java:135)
           at javassist.CtNewMethod.make(CtNewMethod.java:104)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.createIntroductions(ContainerProxyFactory.java:570)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.createMixinsAndIntroductions(ContainerProxyFactory.java:394)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.addMethodsAndMixins(ContainerProxyFactory.java:361)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.createProxyCtClass(ContainerProxyFactory.java:179)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.createProxyCtClass(ContainerProxyFactory.java:159)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.generateProxy(ContainerProxyFactory.java:131)
           at org.jboss.aop.proxy.container.ContainerProxyFactory.getProxyClass(ContainerProxyFactory.java:121)
           at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.generateProxy(GeneratedAOPProxyFactory.java:115)
           at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.getProxy(GeneratedAOPProxyFactory.java:101)
           ... 31 more
          Caused by: compile error: no such field: interceptors
           at javassist.compiler.TypeChecker.fieldAccess(TypeChecker.java:761)
           at javassist.compiler.TypeChecker.atFieldRead(TypeChecker.java:719)
           at javassist.compiler.TypeChecker.atMember(TypeChecker.java:869)
           at javassist.compiler.JvstTypeChecker.atMember(JvstTypeChecker.java:65)
           at javassist.compiler.ast.Member.accept(Member.java:38)
           at javassist.compiler.JvstTypeChecker.atMethodArgs(JvstTypeChecker.java:220)
           at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:652)
           at javassist.compiler.TypeChecker.atNewExpr(TypeChecker.java:98)
           at javassist.compiler.ast.NewExpr.accept(NewExpr.java:72)
           at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235)
           at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:712)
           at javassist.compiler.ast.Declarator.accept(Declarator.java:99)
           at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
           at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
           at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
           at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
           at javassist.compiler.MemberCodeGen.atTryStmnt(MemberCodeGen.java:140)
           at javassist.compiler.CodeGen.atStmnt(CodeGen.java:360)
           at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
           at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
           at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
           at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285)
           at javassist.compiler.Javac.compileBody(Javac.java:212)
           at javassist.CtBehavior.setBody(CtBehavior.java:282)
           ... 43 more
          


          • 2. Re: AOP/MC integration now in a separate project
            Adrian Brock Master

            I've created a holder task for all the AOP/MC work.
            I think most of this is done and it just needs moving from prototype code
            to real code with the FIXMEs resolved and more tests.
            http://jira.jboss.com/jira/browse/JBMICROCONT-75

            This will be a JBossMC 2.0.0M1 release. I assume we can do a AOP2.0.0M1 release
            about the same time?

            These tasks need updating with the real status/assignee with subtasks
            creating for the FIXMEs and tests that need writing.

            Where there is duplication between AOP/MC tasks, the MC task is just there
            for the MC release notes. The AOP task should be preferred for logging the
            real work getting done.

            • 3. Re: AOP/MC integration now in a separate project
              Kabir Khan Master

               

              "adrian@jboss.org" wrote:
              I think I've got all the failing tests down to one problem now?


              This has been fixed