5 Replies Latest reply on Feb 19, 2007 5:42 AM by Kabir Khan

    HEAD errors with profile service

    Jason Dobies Newbie

      I updated to the latest source, built, and ran the server. I had also deleted the thirdparty directory and allowed all of the dependencies to re-downloaded. Everything ran correctly. I wanted to run the profile service, so I followed the instructions in: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99122

      When I booted the server again, I saw the following exception appear a number of times.

      12:11:18,535 ERROR [AbstractKernelController] Error installing to Instantiated: name=JAXWSDeployerEJB3 state=Described
      java.lang.ClassFormatError: Failed to load dyn class: AOPContainerProxy$22
      ... snip ...
      Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: AOPContainerProxy$22, msg=class AOPContainerProxy$22 overrides final method .

      I was unable to get to the welcome page at the root context.

      Any ideas?

      Thanks
      - J

        • 1. Re: HEAD errors with profile service
          Charles Crouch Expert

          Scott,
          Once this issue is resolved, does it make sense to add a cruisecontrol build of the /trunk testsuite which runs against a JBAS instance which has the profile service deployed? The aim being to catch these sort of problems sooner.

          • 2. Re: HEAD errors with profile service
            Scott Stark Master

            There always is a profile service. We do need a test config that validates the full featured version.

            • 3. Re: HEAD errors with profile service
              Scott Stark Master

              An example of a full error is this one:

              lController] Error installing to Instantiated: name=JAXWSDeployerEJB3 state=Described
              java.lang.ClassFormatError: Failed to load dyn class: AOPContainerProxy$25
               at org.jboss.aop.deployment.JBossClassPool.toClass(JBossClassPool.java:112)
               at javassist.ClassPool.toClass(ClassPool.java:847)
               at javassist.ClassPool.toClass(ClassPool.java:805)
               at javassist.CtClass.toClass(CtClass.java:1037)
               at org.jboss.aop.instrument.TransformerCommon$ToClassAction$2.toClass(TransformerCommon.java:296)
               at org.jboss.aop.instrument.TransformerCommon.toClass(TransformerCommon.java:127)
               at org.jboss.aop.proxy.container.ContainerProxyFactory.generateProxy(ContainerProxyFactory.java:139)
               at org.jboss.aop.proxy.container.ContainerProxyFactory.getProxyClass(ContainerProxyFactory.java:127)
               at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.generateProxy(GeneratedAOPProxyFactory.java:128)
               at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.getProxy(GeneratedAOPProxyFactory.java:114)
               at org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:83)
               at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:109)
               at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
               at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52)
               at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
               at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:430)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:540)
               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:474)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
               at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:67)
               at org.jboss.deployers.plugins.deployers.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:42)
               at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
               at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
               at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
               at org.jboss.profileservice.aop.DeployerAspects.commitDeploy(DeployerAspects.java:159)
               at org.jboss.profileservice.aop.DeployerAspects.invoke(DeployerAspects.java:98)
               at org.jboss.aop.advice.org.jboss.profileservice.aop.DeployerAspects_z_invoke_381299.invoke(DeployerAspects_z_invoke_381299.java)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
               at org.jboss.profileservice.aop.DeployerAspects.commitDeploy(DeployerAspects.java:159)
               at org.jboss.profileservice.aop.DeployerAspects.invoke(DeployerAspects.java:98)
               at org.jboss.aop.advice.org.jboss.profileservice.aop.DeployerAspects_z_invoke_381299.invoke(DeployerAspects_z_invoke_381299.java)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
               at AOPContainerProxy$4.commitDeploy(AOPContainerProxy$4.java)
               at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
               at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
               at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:603)
               at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
               at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
               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 org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
               at org.jboss.profileservice.aop.MainDeployerAspect.process(MainDeployerAspect.java:53)
               at org.jboss.profileservice.aop.MainDeployerAspect.invoke(MainDeployerAspect.java:46)
               at org.jboss.aop.advice.org.jboss.profileservice.aop.MainDeployerAspect_z_invoke_381299.invoke(MainDeployerAspect_z_invoke_381299.java)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
               at org.jboss.profileservice.aop.MainDeployerAspect.process(MainDeployerAspect.java:53)
               at org.jboss.aop.advice.org.jboss.profileservice.aop.MainDeployerAspect_z_process_381299.invoke(MainDeployerAspect_z_process_381299.java)
               at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
               at AOPContainerProxy$7.process(AOPContainerProxy$7.java)
               at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:360)
               at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:247)
               at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
               at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
               at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
               at org.jboss.Main.boot(Main.java:210)
               at org.jboss.Main$1.run(Main.java:508)
               at java.lang.Thread.run(Thread.java:595)
              Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: AOPContainerProxy$25, msg=class AOPContainerProxy$25 overrides final method .
               at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:329)
               at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:409)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
               at org.jboss.aop.deployment.JBossClassPool.toClass(JBossClassPool.java:108)
               ... 68 more
              Caused by: java.lang.VerifyError: class AOPContainerProxy$25 overrides final method .
               at java.lang.ClassLoader.defineClass1(Native Method)
               at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
               at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
               at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
               at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
               at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
               at java.security.AccessController.doPrivileged(Native Method)
               at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
               at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:569)
               at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:549)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
               at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
               at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
               at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:403)
               at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:296)
               ... 71 more
              


              The printed method name is garbage, but the base class does declare deploy/undeploy as final:

               public final void deploy(org.jboss.deployers.spi.deployer.DeploymentUnit)
               throws org.jboss.deployers.spi.DeploymentException;
               public final void undeploy(org.jboss.deployers.spi.deployer.DeploymentUnit);
              


              I'll raise this problem with the webservice team.


              • 4. Re: HEAD errors with profile service
                Scott Stark Master

                I don't need to intercept these methods. If I reduce the pointcuts to the 4 methods I do need, I still see the same errors. See the latest bootstrap-repo-beans.xml.