2016-06-28 32 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