2016-06-28 28 views
0

Ich versuche zu lernen, wie die FreePastry API für die Erstellung von Peer-to-Peer-Anwendung zu verwenden. Jetzt arbeite ich am 3. Tutorial, aber irgendwie habe ich diese Fehlermeldung bekommen.freepastry tutorial 3 Fehler: Kann nicht beitreten. Alle Bootstraps sind fehlerhaft

Cannot join ring. All bootstraps are faulty.

run: 
Ox6FD69D:rice.pastry:20160628.044B23.402:joinFailed(rice.pastry.JoinFailedException: Cannot join ring. All boostraps are faulty.[/212.218.89.4:9001]) 
Usage: 
Exception in thread "main" java.io.IOException: Could not join the FreePastry ring. Reason:rice.pastry.JoinFailedException: Cannot join ring. All bootstraps are faulty.[/212.218.89.4:9001]) 
java [-cp FreePastry-<version>.jar] rice.tutorial.lesson3.DistTutorial localbindport bootIP bootPort 
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 90001 
     at rice.tutorial.lesson3.DistTutorial.<init>(DistTutorial.java:94) 
     at rice.tutorial.lesson3.DistTutorial.main(DistTutorial.java:164) 
BUILD STOPPED (total time: 46 seconds) 

die "212.218.89.4", wie meine IP-Adresse? und der Rest des Codes ist der gleiche wie die Demo. Mußte ich etwas am Code ändern? oder ich vermisse etwas ??

Vielen Dank im Voraus.

Antwort

1

Es passiert mir das gleiche, aber der Fehler war, weil ich 127.0.0.1 als meine IP-Adresse verwendet habe. Ich benutze ipconfig Befehl, um meine IP zu bekommen und jetzt funktioniert es gut.

Ich dachte am Anfang der Fehler war, weil sie sagen, dass Sie in Ihrem Projekt user.params oder freepastry.params Datei haben müssen, aber am Ende funktioniert es mit dem Standardkonstruktor der Umgebung. Überprüfen Sie diese https://trac.freepastry.org/wiki/tut_environment

+0

das funktionierte für mich – damoeb