Hi @cookiejoo, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.
The interface cannot be called normally after the dubbo project is accessed.
I used Dubbo 2.7.1 version. It can be called normally without accessing Sentinel. As long as the Sentinel maven package is referenced, the client call is abnormal.
2019-04-19 18:26:32.416 ERROR 45480 --- [nio-8086-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.demo.provider.service.IMyService. Tried 3 times of the providers [10.254.115.204:20881] (1/4) from the registry 10.94.30.167:2181 on the consumer 10.254.115.204 using the dubbo version 2.7.1. Last error is: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext;] with root cause
我用了Dubbo2.7.1版本,没有接入Sentinel是可以正常调用的,只要引用了Sentinel的maven包后客户端调用就异常了。
The interface cannot be called normally after the dubbo project is accessed.
I used Dubbo 2.7.1 version. It can be called normally without accessing Sentinel. As long as the Sentinel maven package is referenced, the client call is abnormal.
2019-04-19 18:26:32.416 ERROR 45480 --- [nio-8086-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service com.demo.provider.service.IMyService. Tried 3 times of the providers [10.254.115.204:20881] (1/4) from the registry 10.94.30.167:2181 on the consumer 10.254.115.204 using the dubbo version 2.7.1. Last error is: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext;] with root cause
Hi, for Dubbo 2.7.x you need to use
sentinel-apache-dubbo-adapter
instead ofsentinel-dubbo-adapter
. You can refer to the document: https://github.com/alibaba/Sentinel/wiki/Adapters-to-Popular-Framework#dubboDuplicate with #669
thank you very mush