#12 RMI

1.0.5
closed
nobody
1
2009-06-25
2009-06-25
ye junpeng
No

How to use the rmi protocol? I use it like this ,but it doesn't success.the errors as follows:
The first console show as this:
Type 'help' for a list of available commands
Console ready.
oc > cprotocol -t ocrmi
oc > joinN
Creating new chord overlay network!
URL of created chord node ocrmi://10.0.7.252/.
oc > insertN -key key -value test
oc >
the other console show like this:
Type 'help' for a list of available commands
Console ready.
oc > cprotocol -t ocrmi
oc > joinN -port 4245 -bootstrap 127.0.0.1:4242
Trying to join chord network with boostrap URL ocrmi://127.0.0.1:4242/
de.uniba.wiai.lspi.chord.service.ServiceException: An error occured when creatin
g a proxy for outgoing connection to bootstrap node! Join operationfailed!
at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.joinHelp(ChordImpl.ja
va:544)
at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.join(ChordImpl.java:4
75)
at de.uniba.wiai.lspi.chord.console.command.RemoteChordNetworkAccess.joi
n(RemoteChordNetworkAccess.java:105)
at de.uniba.wiai.lspi.chord.console.command.JoinNetwork.exec(JoinNetwork
.java:124)
at de.uniba.wiai.lspi.util.console.Command.execute(Command.java:116)
at de.uniba.wiai.lspi.util.console.ConsoleThread.run(ConsoleThread.java:
259)
Caused by: de.uniba.wiai.lspi.chord.com.CommunicationException: Cannot find stub
with name 127.0.0.1
at de.uniba.wiai.lspi.chord.com.rmi.RMIProxy.<init>(RMIProxy.java:97)
at de.uniba.wiai.lspi.chord.com.rmi.RMIProxy.create(RMIProxy.java:113)
at de.uniba.wiai.lspi.chord.com.Proxy.createConnection(Proxy.java:122)
at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.joinHelp(ChordImpl.ja
va:542)
... 5 more
Caused by: java.rmi.NotBoundException: oc_endpoint_ocrmi://127.0.0.1:4242/
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375
)
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:4
66)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.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.lookup(Unknown Source)
at de.uniba.wiai.lspi.chord.com.rmi.RMIProxy.<init>(RMIProxy.java:94)
... 8 more
Join/Creation of network failed. Reason: An error occured when creating a proxy
for outgoing connection to bootstrap node! Join operationfailed!
I hope you help! the manual doesn't write how to use the rmi!
I want to know when the next version release?

Discussion

  • ye junpeng
    ye junpeng
    2009-06-25

    I have the test on the same machine.

     
  • ye junpeng
    ye junpeng
    2009-06-25

    • priority: 5 --> 9
     
  • Sven Kaffille
    Sven Kaffille
    2009-06-25

    • priority: 9 --> 1
    • assigned_to: skaffille --> nobody
    • status: open --> closed
     
  • Sven Kaffille
    Sven Kaffille
    2009-06-25

    That seems not to be a bug.
    You have to compile the stub class with help of rmic.

    rmic de.uniba.wiai.lspi.chord.com.rmi.RMIEndpoint