2 Replies Latest reply on Dec 19, 2013 1:25 PM by Wolf-Dieter Fink

    Unable to make RMI call from JBoss AS 5 to JBoss AS 6

    Hushen Savani Novice

      Dear Community,

       

      We are having an Application in JBoss AS 5 which we want to migrate in JBoss AS 6 where we cannot migrate all my modules in single shot. We have migrated say X module to JBoss AS 6. And we have a module Y which is still in JBoss AS 5. We are trying to make RMI call to EJBs using JNDI from Y to X (e.g. JBoss AS 5 to JBoss AS 6). But unable to make RMI Calls from client running on JBoss AS 5 to EJBs deployed on JBoss AS 6. It is throwing lookup exception,

      Attempting to make a lookup{java.naming.provider.url=jnp://10.110.1.92:3099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

      Attempting to make a lookup2

      Exception occured

      javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]

          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at com.CommunityTest.createBillCycle(CommunityTest.java:26)

          at com.CommunityTest.main(CommunityTest.java:13)

      Caused by: java.lang.reflect.UndeclaredThrowableException

          at com.sun.proxy.$Proxy0.createProxyBusiness(Unknown Source)

          at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

          at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

          at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)

          at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

          at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)

          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)

          ... 5 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor

          at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassLoaderUtility.java:103)

          at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:86)

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:249)

          at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:179)

          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1589)

          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1494)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1748)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)

          at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1683)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1321)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)

          at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:119)

          at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1814)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1773)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)

          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)

          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)

          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1775)

          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1327)

          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)

          at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:238)

          at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:138)

          at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:123)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:1220)

          at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:850)

          at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)

          at org.jboss.remoting.Client.invoke(Client.java:1724)

          at org.jboss.remoting.Client.invoke(Client.java:629)

          at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

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

          at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)

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

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

          at com.sun.proxy.$Proxy0.createProxyBusiness(Unknown Source)

          at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

          at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

          at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)

          at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

          at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)

          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at com.CommunityTest.createBillCycle(CommunityTest.java:26)

          at com.CommunityTest.main(CommunityTest.java:13)

          at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

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

          at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)

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

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

          ... 12 more

       

      I have read on some threads that it is due to the Async call  implementation with AS6. Kindly suggest some pointers on the same. Thanks.

       

      Best Regards,

      Hushen Savani