apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
4k stars 2.17k forks source link

error described as 'No provider available for the service...' encountered while using the service test #1079

Closed FlyingBird-DGU closed 1 year ago

FlyingBird-DGU commented 1 year ago

Environment

Steps to reproduce this issue

  1. 点击dubbo-admin的服务测试功能
  2. 测试某个接口功能
  3. 出现找不到服务的错误

Expected Result

能够和应用程序的服务消费者一样,成功调用服务提供者的功能

Actual Result

What actually happens?

1.我服务的提供者是能正常提供服务的,只是使用dubbo-admin的接口测试功能会出现错误。 error message is as followed

System Error, please try again later! Message:Failed to check the status of the service com.jxccp.im.lib.core.rpc.service.order.IOrderService. No provider available for the service com.jxccp.im.lib.core.rpc.service.order.IOrderService:3.3.0 from the url dubbo://172.16.54.76/com.jxccp.im.lib.core.rpc.service.order.IOrderService?application=dubbo-admin&dubbo=2.0.2&generic=true&interface=com.jxccp.im.lib.core.rpc.service.order.IOrderService&pid=7299&register.ip=172.16.54.76&release=2.7.12&side=consumer&sticky=false&timestamp=1681194889930&version=3.3.0 to the consumer 172.16.54.76 use dubbo version 2.7.12

err

2.因为我应用都是使用hessian通信协议的,我怀疑这个和dubbo-admin发出的请求是dubbo协议有关系,但我不知道如何改变dubbo-admin测试接口所使用的协议 3.所以请问该版本下的dubbo-admin有没有提供服务接口测试自定义通信协议的功能,或者后续版本有没有呢?

FlyingBird-DGU commented 1 year ago

问题我自己解决了,只要在类路径下加上dubbo.xml,指定协议为hessian即可