8 Replies Latest reply on Apr 4, 2005 10:36 AM by mikeg123

    AspectDeployer is calling method that doesn't exist

    mikeg123 Newbie

      HI NEED HELP.

      using JBoss 3.2.6 and jboss-aop_1.1.1

      aop.deployment.AspectDeployer has this:

      public AspectDeployer()
      {
      setSuffixes(new String[]{"aop", "aop.xml"});
      setRelativeOrder(RELATIVE_ORDER_100);
      }

      setSuffixes -> method is not defined in AspectDeployer or in SubDeployerSupport that come with JBoss 3.2.6. How does this make sense, was AOP 1.1.1 build with a different version of JBoss.

      PLEASE HELP

        • 1. Re: AspectDeployer is calling method that doesn't exist
          mikeg123 Newbie

          setRelativeOrder(RELATIVE_ORDER_100); is not defined anywhere either.

          • 3. Re: AspectDeployer is calling method that doesn't exist
            Bill Burke Master

            apologies...

            Somebody blindly changed the code without realizing how I've isolated 3.2.6 deployers from 4.x deployers...

            So, to myself, RTFC....

            • 5. Re: AspectDeployer is calling method that doesn't exist
              Bill Burke Master

              you are screwed until I put out 1.1.2. What you can do is recompile the code and take out hte two methods from the AspectDeployer constructor. I'll be doing a 1.1.2 release sometime next week.

              • 6. Re: AspectDeployer is calling method that doesn't exist
                mikeg123 Newbie

                ok, thanks, I guess I'll just try to rebuild one file. by the way you also might want to look at the fact that PER_VM and PER_CLASS doesn't work,
                one of the Pool classes is looking for a class that is not there either.

                Thanks Michael

                • 8. Re: AspectDeployer is calling method that doesn't exist
                  mikeg123 Newbie

                  Here is the stack trace if start with PER_CLASS or PER_VM
                  (sounds like packaging issue):

                  Unexpected Error in method: public abstract com.crossbeamsys.nms.task.TaskManagerLocal com.crossbeamsys.nms.task.TaskManagerLocalHome.create() throws javax.ejb.CreateException

                  java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassLoader

                  at org.jboss.aop.deployment.JBossClassPool.isUnloadedClassLoader(JBossClassPool.java:47)
                  at org.jboss.aop.AspectManager.clearUnregisteredClassLoaders(AspectManager.java:350)
                  at org.jboss.aop.AspectManager.getRegisteredCLs(AspectManager.java:334)
                  at org.jboss.aop.AOPClassPool.getCached(AOPClassPool.java:72)
                  at javassist.ClassPool.checkNotFrozen(ClassPool.java:385)
                  at javassist.ClassPool.makeClass(ClassPool.java:501)
                  at javassist.ClassPool.makeClass(ClassPool.java:486)
                  at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java:64)
                  at org.jboss.aop.advice.PerClassAdvice.generate(PerClassAdvice.java:26)
                  at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:61)
                  at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:494)
                  at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:535)
                  at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:454)
                  at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:237)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)
                  at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:321)
                  at com.crossbeamsys.nms.security.auth.spi.NMSLoginModule.(NMSLoginModule.java)
                  at java.lang.Class.forName0(Native Method)
                  at java.lang.Class.forName(Class.java:219)
                  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:637)
                  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
                  at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
                  at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:480)
                  at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:431)
                  at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:246)
                  at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:221)
                  at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:151)
                  at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:74)
                  at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
                  at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                  at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319)
                  at org.jboss.ejb.Container.invoke(Container.java:729)
                  at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:347)
                  at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
                  at $Proxy72.create(Unknown Source)
                  at com.crossbeamsys.nms.support.ServiceLocator.getTaskManager(ServiceLocator.java:212)
                  at com.crossbeamsys.nms.task.TaskMigrationSchedulable.perform(TaskMigrationSchedulable.java:62)
                  at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1222)
                  at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
                  at $Proxy9.handleNotification(Unknown Source)
                  at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
                  at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
                  at javax.management.timer.Timer.sendNotifications(Timer.java:442)
                  at javax.management.timer.Timer.access$000(Timer.java:31)
                  at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:613)
                  at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
                  at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)
                  10:34:29,773 ERROR [Scheduler$Listener] Handling a Scheduler call failed
                  javax.ejb.EJBException: Unexpected Error:
                  java.lang.NoClassDefFoundError: org/jboss/mx/loading/RepositoryClassLoader
                  at org.jboss.aop.deployment.JBossClassPool.isUnloadedClassLoader(JBossClassPool.java:47)
                  at org.jboss.aop.AspectManager.clearUnregisteredClassLoaders(AspectManager.java:350)
                  at org.jboss.aop.AspectManager.getRegisteredCLs(AspectManager.java:334)
                  at org.jboss.aop.AOPClassPool.getCached(AOPClassPool.java:72)
                  at javassist.ClassPool.checkNotFrozen(ClassPool.java:385)
                  at javassist.ClassPool.makeClass(ClassPool.java:501)
                  at javassist.ClassPool.makeClass(ClassPool.java:486)
                  at org.jboss.aop.advice.PerVmAdvice.generateInterceptor(PerVmAdvice.java:64)
                  at org.jboss.aop.advice.PerClassAdvice.generate(PerClassAdvice.java:26)
                  at org.jboss.aop.advice.AdviceFactory.create(AdviceFactory.java:61)
                  at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:494)
                  at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:535)
                  at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:454)
                  at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:237)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209)
                  at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:321)
                  at com.crossbeamsys.nms.security.auth.spi.NMSLoginModule.(NMSLoginModule.java)
                  at java.lang.Class.forName0(Native Method)
                  at java.lang.Class.forName(Class.java:219)
                  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:637)
                  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
                  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
                  at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
                  at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:480)
                  at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:431)
                  at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:246)
                  at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:221)
                  at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:151)
                  at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:74)
                  at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
                  at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                  at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319)
                  at org.jboss.ejb.Container.invoke(Container.java:729)
                  at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:347)
                  at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
                  at $Proxy72.create(Unknown Source)
                  at com.crossbeamsys.nms.support.ServiceLocator.getTaskManager(ServiceLocator.java:212)
                  at com.crossbeamsys.nms.task.TaskMigrationSchedulable.perform(TaskMigrationSchedulable.java:62)
                  at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1222)
                  at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
                  at $Proxy9.handleNotification(Unknown Source)
                  at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
                  at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
                  at javax.management.timer.Timer.sendNotifications(Timer.java:442)
                  at javax.management.timer.Timer.access$000(Timer.java:31)
                  at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:613)
                  at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
                  at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)

                  at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:394)
                  at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:124)
                  at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                  at org.jboss.ejb.StatelessSessionContainer.internalInvokeHome(StatelessSessionContainer.java:319)
                  at org.jboss.ejb.Container.invoke(Container.java:729)
                  at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:347)
                  at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
                  at $Proxy72.create(Unknown Source)
                  at com.crossbeamsys.nms.support.ServiceLocator.getTaskManager(ServiceLocator.java:212)
                  at com.crossbeamsys.nms.task.TaskMigrationSchedulable.perform(TaskMigrationSchedulable.java:62)
                  at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1222)
                  at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
                  at $Proxy9.handleNotification(Unknown Source)
                  at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
                  at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
                  at javax.management.timer.Timer.sendNotifications(Timer.java:442)
                  at javax.management.timer.Timer.access$000(Timer.java:31)
                  at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:613)
                  at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
                  at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:240)