溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

springcloud的kubernetes過(guò)濾filter報(bào)錯(cuò)如何解決

發(fā)布時(shí)間:2021-07-07 16:30:51 來(lái)源:億速云 閱讀:528 作者:chen 欄目:大數(shù)據(jù)

這篇文章主要介紹“springcloud的kubernetes過(guò)濾filter報(bào)錯(cuò)如何解決”,在日常操作中,相信很多人在springcloud的kubernetes過(guò)濾filter報(bào)錯(cuò)如何解決問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”springcloud的kubernetes過(guò)濾filter報(bào)錯(cuò)如何解決”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!

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]

過(guò)濾是使用的lables,但是其中與業(yè)務(wù)無(wú)關(guān)的某個(gè)服務(wù)沒(méi)有指定labels導(dǎo)致

到此,關(guān)于“springcloud的kubernetes過(guò)濾filter報(bào)錯(cuò)如何解決”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI