sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.83k stars 1.18k forks source link

RPC-02306: No service #903

Closed wjn0918 closed 4 years ago

wjn0918 commented 4 years ago

使用 SOFAStack 快速构建微服务 服务端刚注册上又会掉线

2020-04-14 11:15:36,173 INFO  ObserverNotifyThread-2-thread-4  com.alipay.sofa.rpc.registry.sofa.SofaRegistrySubscribeCallback - RPC-00204: 接收 RPC 服务地址:服务名[io.sofastack.balance.manage.facade.BalanceMngFacade:1.0:user0@DEFAULT]
  可调用目标地址[1]个
  --- DEFAULT_ZONE
   >>> 192.168.1.3:22200?rpcVer=50504&serialization=hessian2&weight=100&timeout=3000&appName=balance_mng&p=1&v=4.0&_SERIALIZETYPE=hessian2&_WEIGHT=100&_TIMEOUT=3000&app_name=balance_mng&startTime=1586834135548

2020-04-14 11:15:56,278 INFO  ObserverNotifyThread-2-thread-1  com.alipay.sofa.rpc.registry.sofa.SofaRegistrySubscribeCallback - RPC-00204: 接收 RPC 服务地址:服务名[io.sofastack.balance.manage.facade.BalanceMngFacade:1.0:user0@DEFAULT]
  可调用目标地址[0]个
sofastack-bot[bot] commented 4 years ago

Hi @wjn0918, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.

We encourage you to describe your issue in English which is more friendly to other users.

Using SOFAStack to quickly build a microservice server will just go offline after registration '' `2020-04-14 11: 15: 36,173 INFO ObserverNotifyThread-2-thread-4 com.alipay.sofa.rpc.registry.sofa.SofaRegistrySubscribeCallback- RPC-00204: Receive RPC service address: service name [io.sofastack.balance.manage.facade.BalanceMngFacade: 1.0: user0 @ DEFAULT] callable target address [1] --- DEFAULT_ZONE >>> 192.168.1.3:22200 ? rpcVer = 50504 & serialization = hessian2 & weight = 100 & timeout = 3000 & appName = balance_mng & p = 1 & v = 4.0 & _SERIALIZETYPE = hessian2 & _WEIGHT = 100 & _TIMEOUT = 3000 & app_name = balance_mng & startTime = 1586834135548 2020-04-14 11: 15: 56,278 INFO ObserverNotify. .rpc.registry.sofa.SofaRegistrySubscribeCallback-RPC-00204: Receive RPC service address: service name [io.sofastack.balance.manage.facade.BalanceMngFacade: 1.0: user0 @ DEFAULT] callable target address [0] of ``

OrezzerO commented 4 years ago

这个 demo 的具体地址在哪里?我看下我能不能复现

khotyn commented 4 years ago

@OrezzerO 看起来是 sofastack.tech 上的 QuickStart

OrezzerO commented 4 years ago

@wjn0918 已复现,临时解决方案是先用 zk 作为注册中心:

com.alipay.sofa.rpc.registry.address=zookeeper://localhost:2181

已经找 sofa-regstry 的同学一起看下了

qishua commented 4 years ago

泛化调用时报这个错,只有直连才可以调用到服务端,这个是泛化调用的bug吗? 大神有没有解决方案

OrezzerO commented 4 years ago

估计是注册中心本身,或者注册中心相关代码引发的问题