1 Reply Latest reply on Sep 5, 2002 1:06 PM by rmunoz2

    Remote access to a SessionEJB

    rmunoz2

      Hi everybody.

      Please be patient, I'm new in JBoss and EJB. I have some session beans working in the container. I have test clients too, that run fine in the same machine in which the server is running. But when I try to run those test clients programs in a different machine, I recive an Exception like that:

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.io.StreamCorruptedException

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)

      at sun.rmi.transport.Transport$1.run(Transport.java:148)

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

      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

      ...........

      I suposse that is normal because i will have to do something special when the client and the server are in different machines, but i don't know what it is.

      Could anybody help me, for example: giving me an example of a well-done client.

      thanks everybody.
      Rafa.

        • 1. Re: Remote access to a SessionEJB
          rmunoz2

          Ok, I solved the problem.

          I was trying to access a session bean placed in a JBoss 3.02 while my client had (in its classpath) the client jars of the JBoss 3.01.

          The different versions was the problem.

          thanks anyway.