NutzCN Logo
问答 请教点 dubbo 问题
发布于 2460天前 作者 TuWei1992 1579 次浏览 复制 上一个帖子 下一个帖子
标签:

请问
1, dubbo的provider host可以填域名吗? 我host指定一个域名启动报错
2, 不知道为什么, customer 和 provider 如果不在同一网段的话(provider 和 zookeeper 同一网段) 好像customer无法注入对象, 同一网段就可以.

6 回复

就在刚才发完贴后好了, 神奇了
1问题刚开始的报错 是unbind Address xxx

2,问题的报错
就是无法注入

1的报错
```An exception occured while executing the Java class. null: InvocationTargetException: Fail to start server(url: dubbo://6600.duwei.org:20880/com.toltech.common.dict.DictService?application=sys-service&channel.readonly.sent=true&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.toltech.common.dict.DictService&methods=disableDictById,findTypeList,findList,get,save,findPage,delete,getDictList&pid=5687&revision=1.0.0-SNAPSHOT&side=provider×tamp=1500905461889) Failed to bind NettyServer on 6600.duwei.org:20880, cause: Failed to bind to: 6600.duwei.org:20880: Unresolved address: UnresolvedAddressException -> [Help 1]

```

能是我后来 provider机器上加了一条host的原因么

别用数字开头的域名。。。

添加回复
请先登陆
回到顶部