成都创新互联网站制作重庆分公司

springcloud的kubernetes过滤filter报错如何解决

这篇文章主要介绍“springcloud的kubernetes过滤filter报错如何解决”,在日常操作中,相信很多人在springcloud的kubernetes过滤filter报错如何解决问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”springcloud的kubernetes过滤filter报错如何解决”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

创新互联是一家专注于成都网站设计、网站建设与策划设计,镇平网站建设哪家好?创新互联做网站,专注于网站建设10年,网设计领域的专业建站公司;建站业务涵盖:镇平等地区。镇平做网站价格咨询:028-86922220

2019-08-19 02:52:42.439 ERROR 1 --- [ scheduling-1] o.s.c.k.d.KubernetesCatalogWatch : Error watching Kubernetes Services

org.springframework.expression.spel.SpelEvaluationException: EL1012E: Cannot index into a null value

at org.springframework.expression.spel.ast.Indexer.getValueRef(Indexer.java:144) ~[spring-expression-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]

at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:68) ~[spring-expression-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]

at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:89) ~[spring-expression-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]

at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:114) ~[spring-expression-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]

at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:365) ~[spring-expression-5.1.4.RELEASE.jar!/:5.1.4.RELEASE]

at org.springframework.cloud.kubernetes.discovery.KubernetesDiscoveryClient.lambda$getServices$4(KubernetesDiscoveryClient.java:152) ~[spring-cloud-kubernetes-discovery-1.0.0.M2.jar!/:1.0.0.M2]

at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) ~[na:1.8.0_222]

at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[na:1.8.0_222]

at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[na:1.8.0_222]

at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[na:1.8.0_222]

at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_222]

at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_222]

at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[na:1.8.0_222]

at org.springframework.cloud.kubernetes.discovery.KubernetesDiscoveryClient.getServices(KubernetesDiscoveryClient.java:168) ~[spring-cloud-kubernetes-discovery-1.0.0.M2.jar!/:1.0.0.M2]

at org.springframework.cloud.kubernetes.discovery.KubernetesDiscoveryClient.getServices(KubernetesDiscoveryClient.java:159) ~[spring-cloud-kubernetes-discovery-1.0.0.M2.jar!/:1.0.0.M2]

at org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient.getServices(CompositeDiscoveryClient.java:67) ~[spring-cloud-commons-2.1.0.M2.jar!/:2.1.0.M2]

at de.codecentric.boot.admin.server.cloud.discovery.InstanceDiscoveryListener.discover(InstanceDiscoveryListener.java:104) ~[spring-boot-admin-server-cloud-2.1.0.jar!/:2.1.0]

at de.codecentric.boot.admin.server.cloud.discovery.InstanceDiscoveryListener.discoverIfNeeded(InstanceDiscoveryListener.java:99) ~[spring-boot-admin-server-cloud-2.1.0.jar!/:2.1.0]

at de.codecentric.boot.admin.server.cloud.discovery.InstanceDiscoveryListener.onApplicationEvent(InstanceDiscoveryListener.java:94) ~[spring-boot-admin-server-cloud-2.1.0.jar!/:2.1.0]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_222]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_222]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_222]

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_222]

过滤是使用的lables,但是其中与业务无关的某个服务没有指定labels导致

到此,关于“springcloud的kubernetes过滤filter报错如何解决”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注创新互联网站,小编会继续努力为大家带来更多实用的文章!


网页标题:springcloud的kubernetes过滤filter报错如何解决
文章URL:http://cxhlcq.com/article/pocsih.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部