Rmi

1 resposta
T

Ola a todos!
estou tendo um problema com o exemplo mais basico sobre rmi. A excecao-causa é ClassNotFoundException para o stub (que deveria ser gerada automaticamente no JAVA5, mas em todo caso também tentei usando o RMIC). O que devo fazer? a pilha de exceção se segue:

Exception in thread main java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:

java.lang.ClassNotFoundException: sod.rmi.RMIImpl_Stub

at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)

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

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

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

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

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

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)

at java.lang.Thread.run(Thread.java:595)

at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)

at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)

at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)

at sod.rmi.RMIServer.main(RMIServer.java:17)

1 Resposta

_fs

Coloque os stubs no cliente e no servidor.

Criado 20 de junho de 2005
Ultima resposta 20 de jun. de 2005
Respostas 1
Participantes 2