2 Replies Latest reply on Sep 6, 2005 11:04 AM by Francisco Reverbel

    IncompatibleClassChangeError

    Francisco Reverbel Novice

      Not sure if this should go to the AOP forum or to the EJB3 forum... I have an EJB3 that was working correctly. After I updated my jboss-head tree, the (unchanged) EJB3 started to give me an AOP-related error at deployment time.

      The stack trace is below. The EJB3 is in the JBoss testsuite: jboss-head/testsuite/output/lib/recover-stateless.ejb3.

      Thanks,

      Francisco

      2005-09-05 16:03:57,586 WARN [org.jboss.system.ServiceController] Problem creating service jboss.j2ee:service=EJB3,name=StatelessFooBean
      java.lang.IncompatibleClassChangeError
       at org.jboss.aop.pointcut.Util.matchesClassExpr(Util.java:77)
       at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:185)
       at org.jboss.aop.pointcut.ast.ASTClass.jjtAccept(ASTClass.java:23)
       at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:76)
       at org.jboss.aop.pointcut.ast.ASTNot.jjtAccept(ASTNot.java:22)
       at org.jboss.aop.pointcut.AnnotationMatcher.visit(AnnotationMatcher.java:60)
       at org.jboss.aop.pointcut.ast.ASTStart.jjtAccept(ASTStart.java:22)
       at org.jboss.aop.introduction.AnnotationIntroduction.matches(AnnotationIntroduction.java:123)
       at org.jboss.aop.Advisor.deployAnnotationOverride(Advisor.java:226)
       at org.jboss.aop.Advisor.deployAnnotationOverrides(Advisor.java:220)
       at org.jboss.aop.ClassContainer.initializeMetadata(ClassContainer.java:53)
       at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:38)
       at org.jboss.ejb3.EJBContainer.create(EJBContainer.java:276)
       at org.jboss.ejb3.stateless.StatelessManager.createService(StatelessManager.java:82)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:247)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:229)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       at $Proxy0.create(Unknown Source)
       at org.jboss.system.ServiceController.create(ServiceController.java:356)
       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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy47.create(Unknown Source)
       at org.jboss.ejb3.Ejb3JmxDeployment.registerContainer(Ejb3JmxDeployment.java:156)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:318)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:300)
       at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:282)
       at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:253)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:240)
       at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:247)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:229)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       at $Proxy0.create(Unknown Source)
       at org.jboss.system.ServiceController.create(ServiceController.java:356)
       at org.jboss.system.ServiceController.create(ServiceController.java:295)
       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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy20.create(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:181)
       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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:123)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:76)
       ...
      


        • 1. Re: IncompatibleClassChangeError
          Kabir Khan Master

          Maybe try a clean checkout? I was not able to run the dts tests, I am getting

          10:40:25,593 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=StatelessFooBean
          javax.naming.NameNotFoundException: DummyRecoverableProxy1 not bound
           at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
           at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
           at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
           at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
           at javax.naming.InitialContext.lookup(InitialContext.java:351)
           at org.jboss.ejb3.injection.ResourceHandler.loadInjectors(ResourceHandler.java:115)
           at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:382)
           at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:318)
           at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:265)
           at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:43)
           at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:64)
           at org.jboss.ejb3.stateless.StatelessManager.startService(StatelessManager.java:88)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:282)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:231)
           at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          ...
          


          Anyhow, this is during the start phase and the problem you are seeing is during the create phase. Also, the ejb 3 tests work fine.

          Cheers,

          Kabir

          • 2. Re: IncompatibleClassChangeError
            Francisco Reverbel Novice

            Yes, the problem vanished with a clean checkout. Thank you Kabir and sorry for the false bug report.

            Cheers,

            Francisco