1 2 Previous Next 18 Replies Latest reply on May 10, 2006 10:30 PM by kindy_wu Go to original post
      • 15. Re: EJB client cannot connect: [SocketServerInvoker] Failed
        jvramana

        Hi,
        Really it seems like some how remote client is out of sync with jboss server or some classloaders problem on clientside jboss 4.0.4 libraries.
        ClassNotFoundException getting while deserializing on client side.

        I have included all necessary jboss4.0.4 client libs.
        jbossall-client,jboss-ejb3,jboss-aspect-library-jdk50

        Interesting thing is the same remote client works with jboss 4.0.3 libraries and when application also compiled with jboss 4.0.3 libs but running inside jboss 4.0.4 RC1.

        note: webclient has no problems..working properly in both ways.

        plese help me.

        Here is the stacktrace.
        Caused by: java.lang.ClassNotFoundException: [Lcom.test.entities.TestReturnClass;
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        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:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
        at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:120)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1585)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
        at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:107)
        at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
        at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
        at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
        at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:265)
        at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:136)
        at org.jboss.remoting.Client.invoke(Client.java:444)
        at org.jboss.remoting.Client.invoke(Client.java:407)
        at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
        at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
        at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
        at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
        at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
        ... 18 more

        • 16. Re: EJB client cannot connect: [SocketServerInvoker] Failed
          jvramana

          Hi,
          Can anyone help me please..
          I still can't run standard remote client with jboss 4.0.4RC1 lilbraries under jboss 4.0.4 RC1, where as webclient is working fine.

          Thanks in advance,
          Jelda


          • 17. Re: EJB client cannot connect: [SocketServerInvoker] Failed

            Hi, I have the same problem...
            I seems that there is a problem with the serialization.
            Try to include jboss-serialization.jar, in your client CLASSPATH

            • 18. Re: EJB client cannot connect: [SocketServerInvoker] Failed

              it's great ,probem is solved by add jbss-serialization.jar to client path.a lot of thanks

              1 2 Previous Next