1 Reply Latest reply on Jun 26, 2013 7:25 AM by chandramoulee mukherjee

    java.lang.IncompatibleClassChangeError: Implementing class

    chandramoulee mukherjee Newbie

      Getting below exception while calling a remote EJB (EJB3) and assigning the Bean to its interface -

       

      dbSession = (DBSessionBeanInterface) ctx.lookup("DBSessionBeanInterfaceBean/remote");

       

      where DBSessionBeanInterfaceBean implements DBSessionBeanInterface.

       

      Error Details -

       

      594  [main] DEBUG org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase  - Couldn't handle invocation directly within org.jboss.ejb3.proxy.impl.handler.session.SessionRemoteProxyInvocationHandler@161f10f: Current invocation "public abstract java.lang.String com.demo.dl.ejb3.sessionbean.DBSessionBeanInterface.getNetworkIDByNetworkname(java.lang.String)" is not eligible for direct handling by org.jboss.ejb3.proxy.impl.handler.session.SessionRemoteProxyInvocationHandler@161f10f

      609  [main] DEBUG org.jboss.security.SecurityAssociation  - Using ThreadLocal: false

      *****************IncompatibleClassChangeError in Main()*******************

      625  [main] ERROR com.ionix.demo.client.DLDBTest  - IncompatibleClassChangeError:

      java.lang.IncompatibleClassChangeError: Implementing class

          at java.lang.ClassLoader.defineClass1(Native Method)

          at java.lang.ClassLoader.defineClass(Unknown Source)

          at java.security.SecureClassLoader.defineClass(Unknown Source)

          at java.net.URLClassLoader.defineClass(Unknown Source)

          at java.net.URLClassLoader.access$000(Unknown Source)

          at java.net.URLClassLoader$1.run(Unknown Source)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.net.URLClassLoader.findClass(Unknown Source)

          at java.lang.ClassLoader.loadClass(Unknown Source)

          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

          at java.lang.ClassLoader.loadClass(Unknown Source)

          at org.jboss.security.SecurityContextFactory.getContextClass(SecurityContextFactory.java:142)

          at org.jboss.security.SecurityContextFactory.createSecurityContext(SecurityContextFactory.java:68)

          at org.jboss.security.SecurityContextFactory.createSecurityContext(SecurityContextFactory.java:51)

          at org.jboss.ejb3.security.client.SecurityActions$1.run(SecurityActions.java:662)

          at java.security.AccessController.doPrivileged(Native Method)

          at org.jboss.ejb3.security.client.SecurityActions.createSecurityContext(SecurityActions.java:657)

          at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:59)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)

          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

          at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:61)

          at $Proxy3.invoke(Unknown Source)

          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

          at $Proxy2.getNetworkIDByNetworkname(Unknown Source)

          at com.ionix.demo.client.DLDBTest.main(DLDBTest.java:43)

       

      Any help will help will be highly appreciated.