dubbo 3.0.7 jdk 1.8
当我打开特使时,消费者找不到MetadataService,我无法拨打Dubbo电话 当我关闭特使时,它可以正常调用
报错日志:
[ERROR 2022-08-25 10:20:15.507] [Dubbo-framework-metadata-retry-thread-1] [] org.apache.dubbo.registry.client.metadata.MetadataUtils.getRemoteMetadata(MetadataUtils.java:160) [ [DUBBO] Failed to get app metadata for revision 83aeeddd661c6ca60f6b833da21ab257 for type local from instance 10.85.40.73:20880, dubbo version: 3.0.7.kk-SNAPSHOT, current host: 10.85.34.82] org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: getMetadataInfo, provider: dubbo://10.85.40.73:20880/org.apache.dubbo.metadata.MetadataService?connections=1&dubbo=2.0.2&group=hello-service&port=20880&protocol=dubbo&release=3.0.7.kk-SNAPSHOT&retries=0&side=provider&timeout=5000&version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: Fail to decode request due to: java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:146) at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:83) at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57) at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44) at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41) at java.lang.Thread.run(Thread.java:748)
at org.apache.dubbo.rpc.protocol.AbstractInvoker.waitForResultIfSync(AbstractInvoker.java:278) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:185) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(InvocationUtil.java:57) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:73) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.metadata.MetadataServiceDubboProxy1.getMetadataInfo(MetadataServiceDubboProxy1.java) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.registry.client.metadata.MetadataUtils.getRemoteMetadata(MetadataUtils.java:152) [dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.registry.client.AbstractServiceDiscovery.getRemoteMetadata(AbstractServiceDiscovery.java:164) [dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doOnEvent(ServiceInstancesChangedListener.java:152) [dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:112) [dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:525) [dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_191]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_191]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
Caused by: java.util.concurrent.ExecutionException: org.apache.dubbo.remoting.RemotingException: Fail to decode request due to: java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:146) at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:83) at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57) at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44) at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41) at java.lang.Thread.run(Thread.java:748)
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) ~[?:1.8.0_191]
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915) ~[?:1.8.0_191]
at org.apache.dubbo.rpc.AsyncRpcResult.get(AsyncRpcResult.java:195) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.protocol.AbstractInvoker.waitForResultIfSync(AbstractInvoker.java:264) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
... 17 more
Caused by: org.apache.dubbo.remoting.RemotingException: Fail to decode request due to: java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo java.lang.IllegalArgumentException: Service not found:org.apache.dubbo.metadata.MetadataService, getMetadataInfo at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:146) at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:83) at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57) at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44) at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.dubbo.common.threadlocal.InternalRunnable.run(InternalRunnable.java:41) at java.lang.Thread.run(Thread.java:748)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.doReceived(DefaultFuture.java:214) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:176) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:164) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleResponse(HeaderExchangeHandler.java:60) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:181) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.common.threadpool.ThreadlessExecutor$RunnableWrapper.run(ThreadlessExecutor.java:184) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.common.threadpool.ThreadlessExecutor.waitAndDrain(ThreadlessExecutor.java:103) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.AsyncRpcResult.get(AsyncRpcResult.java:193) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
at org.apache.dubbo.rpc.protocol.AbstractInvoker.waitForResultIfSync(AbstractInvoker.java:264) ~[dubbo-3.0.7.kk-SNAPSHOT.jar!/:3.0.7.kk-SNAPSHOT]
... 17 more
原提问者GitHub用户
需要看一下是不是开启了 vs/ds 路由,把 dubbo 自身的请求路由到了错误的机器上
原回答者GitHub用户AlbumenJ
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。