wsandchengxuyuan commented on issue #12778: URL: https://github.com/apache/dubbo/issues/12778#issuecomment-1884409510
> @wsandchengxuyuan Please provide a demo to reproduce it. 我现在使用的doubbo 3.2.5版本 和上述步骤一样: Steps to reproduce this issue start provider start consumer consumer 启动时会调用provider,加载Metadata 进入自定义filter 自定义filter调用 RpcContext.getServiceContext().isProviderSide() 消费者这边控制台一直打印报错 ` Failed to get app metadata for revision eeda6ca9ea9b15a50ce93efc56bcf5f2 for type local from instance xx.xx.xx.xx:xxxxx, dubbo version: 3.2.5, current host: 10.8.0.72, error code: 1-39. This may be caused by , go to https://dubbo.apache.org/faq/1/39 to find instructions. org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: getMetadataInfo, provider: dubbo://xx.xx.xx.xx:xxxxx/org.apache.dubbo.metadata.MetadataService?connections=1&corethreads=2&dubbo=2.0.2&group=tenant&port=20008&prefer.serialization=fastjson2,hessian2&protocol=dubbo&release=3.2.5&retries=0&side=consumer&threadpool=cached&threads=100&timeout=5000&version=1.0.0, cause: org.apache.dubbo.remoting.RemotingException: java.lang.NullPointerException java.lang.NullPointerException at org.apache.dubbo.rpc.protocol.AbstractInvoker.waitForResultIfSync(AbstractInvoker.java:296) at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:190) at org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(InvocationUtil.java:61) at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:75) at org.apache.dubbo.metadata.MetadataServiceDubboProxy21.getMetadataInfo(MetadataServiceDubboProxy21.java) at org.apache.dubbo.registry.client.metadata.MetadataUtils.getRemoteMetadata(MetadataUtils.java:173) at org.apache.dubbo.registry.client.AbstractServiceDiscovery.lambda$getRemoteMetadata$2(AbstractServiceDiscovery.java:229) at org.apache.dubbo.metrics.event.MetricsEventBus.post(MetricsEventBus.java:90) at org.apache.dubbo.registry.client.AbstractServiceDiscovery.getRemoteMetadata(AbstractServiceDiscovery.java:228) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$doOnEvent$2(ServiceInstancesChangedListener.java:162) at java.util.Optional.orElseGet(Optional.java:267) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doOnEvent(ServiceInstancesChangedListener.java:162) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:116) at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener$AddressRefreshRetryTask.run(ServiceInstancesChangedListener.java:489) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) ` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
