apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.52k stars 26.43k forks source link

dubbo2.7.2-Not found exported service: org.apache.dubbo.monitor.MetricsService:20880 #4315

Closed nevin9939 closed 4 years ago

nevin9939 commented 5 years ago
[fms-ds] 2019-06-14 17:49:14,617 [INFO]-[NettyServerWorker-7-1]-[org.apache.dubbo.rpc.protocol.dubbo.CallbackServiceCodec.decodeInvocationArgument(CallbackServiceCodec.java:285)] -  [DUBBO] Not found exported service: org.apache.dubbo.monitor.MetricsService:20880 in [com.xxxx.remote.ISysParasRemote:20880, com.xxxx.remote.IAirBooksResolveRemote:20880], may be version or group mismatch , channel: consumer: /192.168.1.25:52643 --> provider: /192.168.1.25:20880, message:RpcInvocation [methodName=getMetricsByGroup, parameterTypes=[class java.lang.String], arguments=null, attachments={path=org.apache.dubbo.monitor.MetricsService, dubbo=2.0.2, interface=org.apache.dubbo.monitor.MetricsService, version=0.0.0}], dubbo version: 2.7.2, current host: 192.168.1.25
org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.monitor.MetricsService:20880 in [com.xxxx.remote.ISysParasRemote:20880, com.xxxx.remote.IAirBooksResolveRemote:20880], may be version or group mismatch , channel: consumer: /192.168.1.25:52643 --> provider: /192.168.1.25:20880, message:RpcInvocation [methodName=getMetricsByGroup, parameterTypes=[class java.lang.String], arguments=null, attachments={path=org.apache.dubbo.monitor.MetricsService, dubbo=2.0.2, interface=org.apache.dubbo.monitor.MetricsService, version=0.0.0}]
    at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:266) ~[dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.rpc.protocol.dubbo.CallbackServiceCodec.decodeInvocationArgument(CallbackServiceCodec.java:282) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:137) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:132) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:122) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:82) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:48) [dubbo-2.7.2.jar:2.7.2]
    at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:90) [dubbo-2.7.2.jar:2.7.2]
nzomkxia commented 5 years ago

metrics service is not exported by default, you need to set

 <dubbo:metrics port="20880" protocol="dubbo" />

how did you trigger this issue?