java.lang.IllegalStateException: Failed to check the status of the service com.xxx.xxx xxxService.
原因一: 使用端和廣播段的xxxService類名不匹配
原因二:使用端和廣播段的廣播地址不匹配,
廣播端
<!-- 使用multicast廣播註冊中心暴露服務地址 (224.0.0.0 - 239.255.255.255) -->
<dubbo:registry address="multicast://224.5.6.7:2222" />
使用端
<!-- 配置服務註冊中心:使用廣播 -->
<dubbo:registry address="multicast://224.5.6.8:22" />
如224.5.6.7和224.5.6.8,改成統一地址(端口可以不同)
原因三:該地址在網絡中已被佔用;改用其他地址(224.0.0.0-239.255.255.255之間)
如果還不好用,直接改直連吧!
廣播端
<!-- 直連模式 -->
<dubbo:registry address="N/A"/>
使用端
<!-- 直連模式 在 dubbo:reference中 加上url="dubbo://127.0.0.1:20880" -->