Caused by: com.alibaba.nacos.api.exception.NacosException: endpoint is blank-程序员宅基地

技术标签: 微服务架构  

报错信息:

2020-08-29 09:15:43.990 ERROR 436 --- [           main] c.a.cloud.nacos.NacosConfigProperties    : create config service error!properties=NacosConfigProperties{serverAddr='null', encode='null', group='DEFAULT_GROUP', prefix='null', fileExtension='properties', timeout=3000, endpoint='null', namespace='null', accessKey='null', secretKey='null', contextPath='null', clusterName='null', name='null', sharedDataids='null', refreshableDataids='null', extConfig=null},e=,

com.alibaba.nacos.api.exception.NacosException: java.lang.reflect.InvocationTargetException
    at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:45) ~[nacos-api-1.1.1.jar:na]
    at com.alibaba.nacos.api.NacosFactory.createConfigService(NacosFactory.java:43) ~[nacos-api-1.1.1.jar:na]
    at com.alibaba.cloud.nacos.NacosConfigProperties.configServiceInstance(NacosConfigProperties.java:346) ~[spring-cloud-alibaba-nacos-config-2.1.0.RELEASE.jar:2.1.0.RELEASE]
    at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:63) [spring-cloud-alibaba-nacos-config-2.1.0.RELEASE.jar:2.1.0.RELEASE]
    at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52) [spring-cloud-context-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47) [spring-cloud-context-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:101) [spring-cloud-context-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:623) [spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
    at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:367) [spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204) [spring-boot-2.1.15.RELEASE.jar:2.1.15.RELEASE]
    at com.unionman.platform.gateway.SpringCloudGatewayApplication.main(SpringCloudGatewayApplication.java:8) [classes/:na]
Caused by: java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_65]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_65]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_65]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_65]
    at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:42) ~[nacos-api-1.1.1.jar:na]
    ... 12 common frames omitted
Caused by: com.alibaba.nacos.api.exception.NacosException: endpoint is blank
    at com.alibaba.nacos.client.config.impl.ServerListManager.<init>(ServerListManager.java:154) ~[nacos-client-1.1.1.jar:na]
    at com.alibaba.nacos.client.config.http.ServerHttpAgent.<init>(ServerHttpAgent.java:244) ~[nacos-client-1.1.1.jar:na]
    at com.alibaba.nacos.client.config.NacosConfigService.<init>(NacosConfigService.java:83) ~[nacos-client-1.1.1.jar:na]
    ... 17 common frames omitted

 可能原因:maven项目导入了`spring-cloud-starter-alibaba-nacos-config`依赖,但未做config相关配置。

解决方式1:添加config相关配置(分布式配置)

解决方式2:如果没有用到分布式配置,就将这个依赖暂时去掉。

重启问题解决。

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_42425970/article/details/108290478

智能推荐

Android4.4中拒绝发送Intent.ACTION_MEDIA_MOUNTED扫描SD卡的广播_android.intent.action.media_mounted-程序员宅基地

文章浏览阅读9.9k次,点赞3次,收藏6次。当在Android上进行图片的扫描功能开发时一般会使用:sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(“file://”+ Environment.getExternalStorageDirectory()+ picPath)));的广播. 但是在Android4.4及以上版本中,执行上面的代码出现异常:W/Acti_android.intent.action.media_mounted

OJ题 期末成绩_数组 题目描述 又到学期末,小t迎来了又一次的期末考试。虽然每学期都要考试,但是-程序员宅基地

文章浏览阅读1.4k次。题目描述 又到学期末,小明迎来了又一次的期末考试。虽然每学期都要考试,但是这次期末考试对小明来说意义重大。因为小明爱慕已久的女神说,如果小明这次考了全班前三名就做他女朋友。虽说小明没有十足的信心,但是女神的话不能不听啊。考完试后,小明拿到了全班的成绩单,这张成绩单是按学号顺序排好的。小明很想知道班里到底有多少人分数比他高,现在就请你帮帮他,帮他数一下到底有多少人的分数比他高吧。..._数组 题目描述 又到学期末,小t迎来了又一次的期末考试。虽然每学期都要考试,但是

FPGA存储块,有没有使能Primitives output Register作用-程序员宅基地

文章浏览阅读3.1k次,点赞7次,收藏15次。在FPGA中,ROM,RAM存储块在IP核配置中都有一个配置选项:Primitives output Register,比如下图的rom IP核配置界面接下来以RAM读写为例,我这里RAM的第一个数值为1,我们观察第一个数值的位置即可看出这个reg的作用,我这里是always Enable配置:没有勾选Primitives output Register的情况,当我们给了ADDR后,1个时钟周期后,RAM存储块能够读出数值。勾选Primitives output Register的情况,当._primitives output register

日期:将格林尼治时间(GMT)转化为北京时间_gmt日期在线转成中国日期-程序员宅基地

文章浏览阅读1w次,点赞2次,收藏6次。 格里尼治时间,就是我们常常说的0度经线的地方平时,也叫格林平时,格林平时的英文是Greenwich Mean Time,简称GMT,实际上就是UT(universal time )也叫世界时的。 从0度格林经线到120度东八区时区经线,经差为120度,换算成时间为8小时(120除以15),所以格林平时和北京时间差八小时,而且是北京时间比格林平时快8小时,因此是在格..._gmt日期在线转成中国日期

设置VIM字体(zz)-程序员宅基地

文章浏览阅读850次。[url=http://blog.csdn.net/searun/archive/2007/06/29/1671897.aspx][Hacking VIM]之定制:改变字体[/url]在控制台下的VIM是不能够改变字体的,因为字体的改变是随着终端字体的变化而变化的,但是在GVIM中,你却有权力将字体改变成自己想要的样子。在Linux下设置字体的命令是::set guifont=..._vim控制台字体配置

unity3d 屏幕适配 iPhone X 解决方案_unity ios iphone displaymanager.mm-程序员宅基地

文章浏览阅读6.3k次。添加获取手机型号方法#import + (NSString*)getDeviceVersion{ struct utsname systemInfo; uname(&systemInfo); NSString *deviceVersion = [NSString stringWithCString:systemInfo.machine enc_unity ios iphone displaymanager.mm

随便推点

android开发模式LiveData+ViewModel+Room+Retrofit_android retrofit viewmodel-程序员宅基地

文章浏览阅读6.5k次,点赞3次,收藏7次。导依赖implementation 'com.android.support:cardview-v7:26.1.0'implementation "android.arch.lifecycle:extensions:1.0.0"implementation "android.arch.persistence.room:runtime:1.0.0"annotationProcessor "an..._android retrofit viewmodel

VMware vCenter Server 的内部版本号和版本 (2143838)--2020-10-27 更新_vcenter 21784236-程序员宅基地

文章浏览阅读1.7k次。VMware vCenter Server 的内部版本号和版本 (2143838)--2020-10-27 更新Click here to view full documenthttps://kb.vmware.com/articleview?docid=2143838&lang=zh_CNSymptoms 免责声明:本文是Build numbers and versions of VMware vCenter Server (2143838)的翻译版本。尽管我们会不断努..._vcenter 21784236

SpringCloudAlibabaNacos集成阿里云OSS对象存储服务_nacos如何配置oss-程序员宅基地

文章浏览阅读895次。SpringCloudAlibaba整合oss官网示例:https://github.com/alibaba/aliyun-spring-boot/tree/master/aliyun-spring-boot-samples/aliyun-oss-spring-boot-sample首先肯定是开通oss服务了(免费的):然后创建一个bucket:然后新建一个module,作为专门处理第三方服务的微服务:引入依赖:<?xml version="1.0" encoding="UTF-8"?_nacos如何配置oss

vnc和anaconda冲突解决方法:could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME envi-程序员宅基地

文章浏览阅读7.7k次,点赞3次,收藏8次。1、注释掉~/.bashrc中anaconda相关的环境变量设置2、执行source ~/.bashrc3、重启一个xshell连接,启动vnc4、还原~/.bashrc中注释掉的anaconda相关的环境变量5、执行source ~/.bashrc_could not make bus activated clients aware of xdg_current_desktop=gnome envi

freemarker+wkhtmltopdf生成花里胡哨的pdf记录_使用wkhtmltopdf将网页转换为pdf时页脚不显示全-程序员宅基地

文章浏览阅读781次,点赞5次,收藏4次。背景介绍业务需求需要最终生成pdf,这个pdf花里花哨的能达到二三十页之多,目录、页眉页脚、表格数据、图片等都需要根据数据的变化跟着变化,拿到这份需求内心是崩溃的太难了。开始寻找解决方案以前同事也通过api的方式生成过word文档,但那种样式简单,能变化的也只有表格的多少,还有一些基本信息,且不要求页眉页脚字体等。免费版api也就支持几页word或pdf,肯定不能支持如今的需求了,于是上收费版,但是看了眼价格2w多,瞬间想想换个方式吧。(其实主要是目前需求的样式设计很复杂,如果都夹杂到jav._使用wkhtmltopdf将网页转换为pdf时页脚不显示全