Open zhangDa666 opened 7 years ago
可以检查一下 1、是否在本地运行了zookeeper 2、server是否正确注册到了本地zookeeper中,并打开了心跳。
如果想简单运行demo,可以把client的注册中心配置为直连方式
<motan:registry regProtocol="direct" address="${server ip}: ${server port}" name="motanDemo" />
local是本地injvm调用方式,必须client和server在同一个jvm启动,local方式没有网络开销
明白了,thanks
我就是运行com.weibo.motan.demo.client下的DemoRpcClient, 报错:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'motanDemoReferer': FactoryBean threw exception on object creation; nested exception is com.weibo.api.motan.exception.MotanFrameworkException: error_message: ClusterSupport No service urls for the refer:motan://192.168.0.154:0/motan-demo-rpc/com.weibo.motan.demo.service.MotanDemoService/1.0/referer, registries:[zookeeper://127.0.0.1:2181/com.weibo.api.motan.registry.RegistryService?group=default_rpc], status: 404, error_code: 10101,r=null