Discussions

EJB programming & troubleshooting: Exception in thread "main" java.lang.IncompatibleClassChangeErro

  1. We have EJBs that are running on WLS 8.1 Sp5. I have written a client that accesses one of the EJBs and compiled it under jdk1.6. We want to use jdk 1.6 for our new project but still want to use the EJBs ( that are under WL8.1 SP5) in other project. Can someone help ? Is this allowed? I get following error : Exception in thread "main" java.lang.IncompatibleClassChangeError: class com.mor ris.roar.sl.services.SlWSRetrieveParsedCsrServiceV2Bean_r132xa_HomeImpl_815_WLSt ub has interface weblogic.rmi.extensions.server.Stub as super class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 4) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(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 java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass Loader.java:176) at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:7 57) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7 86) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:7 79) at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74) at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:213) at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:207) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:10 61) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1 762) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at weblogic.utils.io.ChunkedObjectInputStream.readObjectFromPreDiabloPee r(ChunkedObjectInputStream.java:221) at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja va:562) at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectIn putStream.java:193) at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62) at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef .java:348) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef .java:259) at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown So urce) at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392) at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380) at javax.naming.InitialContext.lookup(InitialContext.java:392) at SlParsedCsrTest.lookupHome(SlParsedCsrTest.java:67) at SlParsedCsrTest.(SlParsedCsrTest.java:40) at SlParsedCsrTest.main(SlParsedCsrTest.java:361) Thanks
  2. Hi, Did you ever find a solution and if you did, can you please post it. I'm having the same problem but nothing on the web helps. Thanks