2016-06-28 31 views
0

我尝试学习如何使用FreePastry API创建对等应用程序。现在,我正在开发第三篇教程,但不知何故,我收到了这条错误消息。freepastry教程3错误:无法加入响铃。所有引导程序都有问题

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) 

其中 “212.218.89.4” 我的IP地址?其余代码与演示相同。我是否需要更改代码上的某些内容?或者我想念什么?

在此先感谢。

回答

1

它发生在我身上,但错误是因为我使用127.0.0.1作为我的IP地址。我使用ipconfig命令来获得我的IP,现在它工作正常。

我认为在开始的错误是因为他们说你的项目中必须有user.params或freepastry.params文件,但最后它可以与环境的默认构造函数一起使用。检查这https://trac.freepastry.org/wiki/tut_environment

+0

这工作对我来说 – damoeb