我尝试学习如何使用 FreePastry API 来创建点对点应用程序。现在,我正在学习第三个教程,但不知何故我收到了此错误消息。
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 地址?其余代码与demo相同。我需要更改代码吗?或者我错过了什么??
提前致谢。
最佳答案
我也遇到了同样的情况,但错误是因为我使用 127.0.0.1 作为我的 IP 地址。我使用 ipconfig 命令来获取我的 IP,现在它工作正常。
我认为错误一开始是因为他们说在你的项目中你必须有 user.params 或 freepastry.params 文件,但最后它与环境的默认构造函数一起使用。检查这个https://trac.freepastry.org/wiki/tut_environment
关于java - freepastry教程3错误: Cannot join ring.所有 Bootstrap 都有故障,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38066337/