-
CSE 引擎 配置中心 全局配置,实例动态配置都删除了,为什么接口还能获取到原来的数据? 过了5分钟了,还是原来的数据!
-
Java版本的调用指导https://bbs.huaweicloud.com/forum/thread-11095-1-1.html没找到go跨APP调用的指导,仿着Java的指导,用go chassis调了一下跨APP的服务。报错了,一路追代码,发现go chassis调用的 1.13.1版本的go的url包的校验函数,总不能说golang的1.13.3的url包的校验函数有问题吧?求大神指导啊
-
求大神指导一下,go chassis 1.8.1版本 注册到CSE失败 但是 1.7.6版本注册是没有问题的。 官方wiki写的是1.8.1版本,但是 demo给的是1.7.6版本。我用go chassis 1.8.1版本注册到CSE 没有schema信息但是 demo中用的go chassis 1.7.6版本是有schema信息的https://support.huaweicloud.com/qs-servicestage/servicestage_qs_0035.html官方样例代码https://github.com/servicestage-demo/microservice-solution/tree/master/go我改了go chassis版本为1.8.1后注册后不显示接口信息
-
springboot2.0.X整合CSE是可以了,但是我们需要springboot2.1.X,缺发现启动一直报错,以下是错误信息:Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Zat org.springframework.context.event.GenericApplicationListenerAdapter.supportsSourceType(GenericApplicationListenerAdapter.java:81)at org.springframework.context.event.AbstractApplicationEventMulticaster.supportsEvent(AbstractApplicationEventMulticaster.java:295)at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:225)at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:196)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)at com.github.yhs0092.javachassis.demo.AppMain.main(AppMain.java:11)
-
如题
-
微服务都在CSE注册中心注册,微服务间都是通过RPC调用。当CSE故障不可用时,服务是否可以继续惯性运行,即CSE的SDK是否有缓存各个实例IP,CSE故障后可让服务调用继续可用?缓存是否有超时时间,如果有,超时时间是多少,即可惯性运行多长时间?
-
升级版本com.huawei.paas.cse2.3.58--2.3.73 项目springcloud Greenwich.SR1 sprongboot2.1.6 问题发生由于org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.apache.servicecomb.config.archaius.sources.MicroserviceConfigLoader] to type [java.lang.String]at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.env.AbstractPropertyResolver.convertValueIfNecessary(AbstractPropertyResolver.java:263) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:91) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:539) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.cloud.netflix.archaius.ConfigurableEnvironmentConfiguration.getProperty(ConfigurableEnvironmentConfiguration.java:64) ~[spring-cloud-netflix-archaius-2.1.1.RELEASE.jar:2.1.1.RELEASE]at com.netflix.config.ConcurrentCompositeConfiguration.getProperty(ConcurrentCompositeConfiguration.java:539) ~[archaius-core-0.7.6.jar:0.7.6]at com.netflix.config.ConcurrentCompositeConfiguration.getProperty(ConcurrentCompositeConfiguration.java:539) ~[archaius-core-0.7.6.jar:0.7.6]at org.apache.servicecomb.config.ConfigUtil.getProperty(ConfigUtil.java:92) ~[foundation-config-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.config.ConfigUtil.getProperty(ConfigUtil.java:86) ~[foundation-config-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.config.ConfigUtil.getMicroserviceConfigLoader(ConfigUtil.java:102) ~[foundation-config-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.serviceregistry.RegistryUtils.init(RegistryUtils.java:61) ~[service-registry-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.springboot.starter.registry.RegistryIntializer.initRegistry(RegistryIntializer.java:39) ~[spring-boot-starter-registry-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.springboot.starter.registry.ServiceCenterRegistryConfiguration.<init>(ServiceCenterRegistryConfiguration.java:30) ~[spring-boot-starter-registry-1.2.0.B011.jar:1.2.0.B011]at org.apache.servicecomb.springboot.starter.registry.ServiceCenterRegistryConfiguration$$EnhancerBySpringCGLIB$$9de1b9ba.<init>(<generated>) ~[spring-boot-starter-registry-1.2.0.B011.jar:1.2.0.B011]at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_191]at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_191]at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_191]at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_191]at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1295) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1197) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) [spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]at com.huawei.routeserver.RouteServerApplication.main(RouteServerApplication.java:39) [classes/:?]
-
CSE支持设置输出格式compactFormat和PrettyPrint吗?如:PrettyPrint{ "code": "0", "message": "success", "messageInfo": "asdasdad"}compactFormat{"code":"0","message":"success","messageInfo":"asdasdad"}
-
2020-01-09T15:40:31.427+0800 ERROR service/microservice.go:160 create micro-service[/itravel/gw-amadeus/1.0.1.1] failed, operator: 10.162.150.152 {"error": "context canceled"}2020-01-09T15:40:31.427+0800 ERROR service/microservice.go:160 create micro-service[/itravel/gw-pkfare/1.0.1.1] failed, operator: 10.162.150.152 {"error": "context canceled"}2020-01-09T15:40:31.448+0800 WARN alarm/alarm.go:62 duplicate alarm &{1 CSE-2041 请求失败##Request Failure CSE S-CSE cse-service-center 3 3 service=cse-service-center;nodeIp=10.171.201.113 2 2020-01-09T07:40:31Z 服务内部异常##Service internal exception 查看日志定位问题##Check logs to locate the fault }2020-01-09T15:40:31.469+0800 WARN alarm/alarm.go:62 duplicate alarm &{1 CSE-2041 请求失败##Request Failure CSE S-CSE cse-service-center 3 3 service=cse-service-center;nodeIp=10.171.201.113 2 2020-01-09T07:40:31Z 服务内部异常##Service internal exception 查看日志定位问题##Check logs to locate the fault }同时间前后的etcd日志2020-01-09 15:39:03.278487 W | wal: sync duration of 1.023149231s, expected less than 1s2020-01-09 15:39:03.321204 I | mvcc: finished scheduled compaction at 3763763 (took 704.929056ms)2020-01-09 15:40:33.252187 W | wal: sync duration of 2.508317009s, expected less than 1s2020-01-09 15:40:34.841770 W | wal: sync duration of 1.589395544s, expected less than 1s2020-01-09 15:52:41.542659 I | etcdserver: start to snapshot (applied: 132653220, lastsnap: 132643219)
-
当前cse8.0新特性已经支持配置中心参数读取,但是cse 6.5.59版本如何集成华为云的配置中心,读取到配置中心的全局配置参数;希望大神相助!
-
edge直接返回的异常场景,求助traceId如何打印。打印方式为yaml中如下方式:pattern: "%SCB-traceId|%{yyyy-MM-dd HH:mm:ss.SSS}t|%h|%r|%s|%D"traceId加入上下文方式(非edge直接返回场景可以正常打印):ContextUtils.getInvocationContext().addContext(Const.TRACE_ID_NAME, traceId)
-
<dependency> <groupId>com.huawei.paas.cse</groupId> <artifactId>cse-dependency-spring-boot2</artifactId> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> </exclusions> <version>2.3.70</version> <!-- <version>2.5.0</version>--> <type>pom</type> <scope>import</scope> </dependency><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</version> <type>pom</type> <scope>import</scope></dependency>...添加如下依赖启动报错:<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-zuul</artifactId> </dependency>报错信息:java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)Vat org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:161)at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:102)at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:68)at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:340)at org.springframework.boot.SpringApplication.run(SpringApplication.java:304)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202)at com.huaweicloud.gateway.GatewayApplication.main(GatewayApplication.java:31)Disconnected from the target VM, address: '127.0.0.1:54258', transport: 'socket'
-
在CSE上开启了sslEnabled,并且autoPeer都设置为true进行双向认证,但是抓包看都没有证书交换和验证。
-
加上EnableBinding注解后,启动报端口占用错误猜测是先启动了vertx rest的端口后面再启动spring的tomcat的时候报错了下面是pom和父pom4.0.0com.huawei.aciotparent1.0-SNAPSHOTdevice-common0.0.1-SNAPSHOTdevice-commonDemo project for Spring Boot1.8org.projectlomboklomboktrueorg.apache.servicecombhandler-tracing-zipkinorg.springframework.cloudspring-cloud-stream-test-supporttestorg.springframework.cloudspring-cloud-streamorg.springframework.cloudspring-cloud-stream-binder-kafkaorg.springframework.kafkaspring-kafkacom.huawei.eciotcore-util0.0.1-SNAPSHOT父pomorg.springframework.bootspring-boot-starter-parent2.1.6.RELEASEpomimportorg.springframeworkspring-core5.1.8.RELEASEpomimportcom.huawei.paas.csecse-dependency-spring-boot26.5.62pomimportcom.huawei.paas.csecse-solution-service-engineorg.slf4jslf4j-log4j12org.apache.servicecombspring-boot2-starter-servletorg.springframework.bootspring-boot-starter-testtestyaml: : : device-common : : 8090 : : /device-north : ac-iot : : device : 0.0.1 : : true : development : : : : false : : 192.188.240.32:${server.port} : : /device : : : http://192.88.16.46:30100 : : : : : loadbalance,tracing-consumer : : tracing-provider : : : http://localhost:9411大佬们帮忙看一下是哪里配错了吗stephen_meng 发表于2020-01-06 19:29:01 2020-01-06 19:29:01 最后回复 stephen_meng 2020-01-06 19:30:001862 1
上滑加载中
推荐直播
-
全面解析华为云EI-API服务:理论基础与实践应用指南
2024/11/29 周五 18:20-20:20
Alex 华为云学堂技术讲师
本期直播给大家带来的是理论与实践结合的华为云EI-API的服务介绍。从“主要功能,应用场景,实践案例,调用流程”四个维度来深入解析“语音交互API,文字识别API,自然语言处理API,图像识别API及图像搜索API”五大场景下API服务,同时结合实验,来加深开发者对API服务理解。
回顾中 -
企业员工、应届毕业生、在读研究生共探项目实践
2024/12/02 周一 19:00-21:00
姚圣伟 在职软件工程师 昇腾社区优秀开发者 华为云云享专家 HCDG天津地区发起人
大神带你一键了解和掌握LeakyReLU自定义算子在ONNX网络中应用和优化技巧,在线分享如何入门,以及在工作中如何结合实际项目进行学习
即将直播 -
昇腾云服务ModelArts深度解析:理论基础与实践应用指南
2024/12/03 周二 14:30-16:30
Alex 华为云学堂技术讲师
如何快速创建和部署模型,管理全周期AI工作流呢?本期直播聚焦华为昇腾云服务ModelArts一站式AI开发平台功能介绍,同时结合基于ModelArts 的实践性实验,帮助开发者从理论到实验更好地理解和使用ModelArts。
去报名
热门标签