我是靠谱客的博主 纯情毛衣,最近开发中收集的这篇文章主要介绍dubbo报错couldn‘t be instantiated: io/fabric8/kubernetes/client/KubernetesClient,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

报错信息

2022-02-01 23:11:16.745 ERROR 2776 --- [           main] o.a.dubbo.registry.nacos.NacosRegistry   :  [DUBBO] Failed to notify addresses for subscribe dubbo://192.168.75.1/com.space.mall.provider.service.OrderService?application=mall-consumer&category=providers,configurators,routers&check=true&dubbo=2.0.2&group=mall-service&interface=com.space.mall.provider.service.OrderService&metadata-type=remote&methods=save&pid=2776&qos.accept.foreign.ip=false&qos.enable=false&release=3.0.2&revision=1.0.0-RELEASE&side=consumer&sticky=false&timeout=60000&timestamp=1643728275979&version=1.0.0-RELEASE, cause: Extension instance (name: kubernetes, class: interface org.apache.dubbo.rpc.cluster.router.mesh.route.MeshEnvListener) couldn't be instantiated: io/fabric8/kubernetes/client/KubernetesClient, dubbo version: 3.0.2, current host: 192.168.75.1

java.lang.IllegalStateException: Extension instance (name: kubernetes, class: interface org.apache.dubbo.rpc.cluster.router.mesh.route.MeshEnvListener) couldn't be instantiated: io/fabric8/kubernetes/client/KubernetesClient

原因

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.3</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-spring-boot-starter</artifactId>
            <version>3.0.2</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba.nacos</groupId>
            <artifactId>nacos-client</artifactId>
            <version>2.0.3</version>
        </dependency>

解决

改为

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.5.9</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-spring-boot-starter</artifactId>
            <version>3.0.5</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba.nacos</groupId>
            <artifactId>nacos-client</artifactId>
            <version>2.0.4</version>
        </dependency>

最后

以上就是纯情毛衣为你收集整理的dubbo报错couldn‘t be instantiated: io/fabric8/kubernetes/client/KubernetesClient的全部内容,希望文章能够帮你解决dubbo报错couldn‘t be instantiated: io/fabric8/kubernetes/client/KubernetesClient所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(55)

评论列表共有 0 条评论

立即
投稿
返回
顶部