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

Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ #519

Open zeminli opened 5 years ago

zeminli commented 5 years ago

System Error, please try again later! Message:java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

image

image

请教这个怎么处理?

youpickone commented 5 years ago

同样遇到这个问题,请问楼主解决了么

zeminli commented 5 years ago

同样遇到这个问题,请问楼主解决了么

重启一下ZK 项目 试试看.

youpickone commented 5 years ago

重启过了,还是这样

youpickone commented 5 years ago

dubbo监控页面服务信息和元数据信息都没有 dubbo-admin用的最新的develop分支 dubbo是2.7.0版本 提供者的application.properties spring.application.name = dubbo-demo-provider server.port = 8081 dubbo.application.name = dubbo-demo-provider mistra.service.version = 1.0.0 dubbo.protocol.name = dubbo dubbo.protocol.port = 20880 dubbo.registry.address = zookeeper://192.168.226.128:2181 dubbo.provider.timeout = 1000 spring.main.allow-bean-definition-overriding=true dubbo.metadata-report.address=zookeeper://192.168.226.128:2181 dubbo.config-center.address=zookeeper://192.168.226.128:2181

dubbo.properties dubbo.registry.address=zookeeper://192.168.226.128:2181 dubbo.metadata-report.address=zookeeper://192.168.226.128:2181

服务端的application.propertis

centers in dubbo2.7

admin.registry.address=zookeeper://192.168.226.128:2181 admin.config-center=zookeeper://192.168.226.128:2181 admin.metadata-report.address=zookeeper://192.168.226.128:2181

zhang259 commented 5 years ago

我也是遇到了这个问题,后来debug源码发现,从zookeeper获取元数据得时候,路径不对,zookeeper里元数据存储得路径是,/dubbo/metadata/com.zdll.dubbo.api.HelloService/0.0.1/provider/dubbo-provider/service.data,实际获取得path是/dubbo/metadata/com.zdll.dubbo.api.HelloService/0.0.1/provider/dubbo-provider,少了/service.data,我把代码改了就可以了,这是个bug吗?

图片

图片

piraterocy commented 5 years ago

遇到同样的问题,请问楼上是如何解决的,图片显示不出。该死的墙。

dengxh109 commented 4 years ago

我也遇到一样的问题, @zhang259 的方式可以解决问题

kexiaomeng commented 4 years ago

我也遇到一样的问题, @zhang259 的方式可以解决问题

我也遇到了,保证dubbo和dubbo-admin的版本一致就没有这个问题了

kexiaomeng commented 4 years ago

dubbo-admin和dubbo的版本需要保持一致,不同版本之间在zookeeper中存储服务信息的路径不同