#11 Join the network

1.0.5
open
nobody
5
2009-06-25
2009-06-24
ye junpeng
No

Hello!
I use the open chord ‘s version 1.0.5,and found these problems。I use the two computers,the
first’IP is 10.0.5.242,the second‘s IP is 10.0.7.252。I use the first computer as a chord net,it's ip is 10.0.5.242 and it's port is 4242。Then I use the second computer,it's ip is 10.0.7.252 and it‘s port is 4242。when I ask the second computer join the chord net using the first’URL as the bootstrapURL。Then it‘s errors。

The program run as follows:
please input you host's IP:
10.0.7.252
please input you host's post: 4242
ocsocket://10.0.7.252:4242/
please input the bootstrap host's IP:
10.0.5.242
/10.0.5.242
please input the bootstrap host's port: 4242
ocsocket://10.0.5.242:4242/
Exception in thread "main" java.lang.RuntimeException: Trying to use local node Node[type=NodeImpl, id=186 246 118 219 , url=ocsocket://10.0.7.252:4242/] with references. This is not possible.If you see this Exception contact the developers!
at de.uniba.wiai.lspi.chord.service.impl.References.checkIfProxy(References.java:674)
at de.uniba.wiai.lspi.chord.service.impl.References.addReferenceAsPredecessor(References.java:596)
at de.uniba.wiai.lspi.chord.service.impl.NodeImpl.notify(NodeImpl.java:187)
at de.uniba.wiai.lspi.chord.service.impl.NodeImpl.notifyAndCopyEntries(NodeImpl.java:212)
at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.joinHelp(ChordImpl.java:617)
at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.join(ChordImpl.java:475)
at Test.testsontwo.main(testsontwo.java:60)

Discussion

  • ye junpeng

    ye junpeng - 2009-06-24

    inplements the Key interface

     
  • ye junpeng

    ye junpeng - 2009-06-24

    The first node

     
  • ye junpeng

    ye junpeng - 2009-06-24

    The second node

     
  • ye junpeng

    ye junpeng - 2009-06-24

    if I use the different port,it can run but it will throw the exceptions
    for example the first compute'port:4242,and the second compute's port:4243
    the the result of the run is:
    please input you host's IP:
    10.0.7.252
    please input you host's post: 4243
    ocsocket://10.0.7.252:4243/
    please input the bootstrap host's IP:
    10.0.5.242
    /10.0.5.242
    please input the bootstrap host's port: 4242
    ocsocket://10.0.5.242:4242/
    de.uniba.wiai.lspi.chord.service.ServiceException: An error occured when contacting the successor of this node in order to obtain its references and entries! Join operation failed!
    at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.joinHelp(ChordImpl.java:578)
    at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.join(ChordImpl.java:475)
    at Test.testsontwo.main(testsontwo.java:60)
    Caused by: de.uniba.wiai.lspi.chord.com.CommunicationException: Could not set up IO channel to host localhost
    at de.uniba.wiai.lspi.chord.com.socket.SocketProxy.makeSocketAvailable(SocketProxy.java:947)
    at de.uniba.wiai.lspi.chord.com.socket.SocketProxy.notifyAndCopyEntries(SocketProxy.java:1071)
    at de.uniba.wiai.lspi.chord.service.impl.ChordImpl.joinHelp(ChordImpl.java:575)
    ... 2 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:520)
    at java.net.Socket.connect(Socket.java:470)
    at java.net.Socket.<init>(Socket.java:367)
    at java.net.Socket.<init>(Socket.java:180)
    at de.uniba.wiai.lspi.chord.com.socket.SocketProxy.makeSocketAvailable(SocketProxy.java:901)
    ... 4 more

     
  • ye junpeng

    ye junpeng - 2009-06-25
    • priority: 5 --> 7
    • assigned_to: nobody --> skaffille
     
  • ye junpeng

    ye junpeng - 2009-06-25
    • priority: 7 --> 9
     
  • Sven Kaffille

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

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks