-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
5.0.1
Context
Hi,
I'm getting NullPointerException in KubeServiceState. It seems that addresses list is sometimes not filled. My backends were overloaded when it appeared so possible case is that none of backend pods were in ready state.
java.lang.NullPointerException: Cannot invoke "io.vertx.core.json.JsonArray.size()" because "addresses" is null
at io.vertx.serviceresolver.kube.impl.KubeServiceState.handleEndpoints(KubeServiceState.java:108)
at io.vertx.serviceresolver.kube.impl.KubeServiceState.handleUpdate(KubeServiceState.java:92)
at io.vertx.serviceresolver.kube.impl.KubeServiceState.lambda$connectWebSocket$0(KubeServiceState.java:61)
at io.vertx.core.internal.ContextInternal.dispatch(ContextInternal.java:249)
at io.vertx.core.http.impl.WebSocketImplBase.receiveFrame(WebSocketImplBase.java:439)
at io.vertx.core.http.impl.WebSocketImplBase$1.handleMessage(WebSocketImplBase.java:112)
at io.vertx.core.http.impl.WebSocketImplBase$1.handleMessage(WebSocketImplBase.java:101)
at io.vertx.core.internal.concurrent.InboundMessageQueue.test(InboundMessageQueue.java:86)
at io.vertx.core.streams.impl.MessagePassingQueue.drain(MessagePassingQueue.java:228)
at io.vertx.core.streams.impl.MessagePassingQueue.drain(MessagePassingQueue.java:210)
at io.vertx.core.internal.concurrent.InboundMessageQueue.drainInternal(InboundMessageQueue.java:168)
at io.vertx.core.internal.concurrent.InboundMessageQueue.drain(InboundMessageQueue.java:145)
at io.vertx.core.internal.concurrent.InboundMessageQueue.write(InboundMessageQueue.java:132)
at io.vertx.core.http.impl.WebSocketImplBase.handleFrame(WebSocketImplBase.java:373)
at io.vertx.core.http.impl.WebSocketConnectionImpl.handleWsFrame(WebSocketConnectionImpl.java:197)
at io.vertx.core.http.impl.WebSocketConnectionImpl.handleMessage(WebSocketConnectionImpl.java:176)
at io.vertx.core.net.impl.VertxConnection.read(VertxConnection.java:247)
at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:148)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:455)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1537)
at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1395)
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1446)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:530)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:469)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1429)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:918)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:167)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.handle(AbstractNioChannel.java:445)
at io.netty.channel.nio.NioIoHandler$DefaultNioRegistration.handle(NioIoHandler.java:381)
at io.netty.channel.nio.NioIoHandler.processSelectedKey(NioIoHandler.java:575)
at io.netty.channel.nio.NioIoHandler.processSelectedKeysOptimized(NioIoHandler.java:550)
at io.netty.channel.nio.NioIoHandler.processSelectedKeys(NioIoHandler.java:491)
at io.netty.channel.nio.NioIoHandler.run(NioIoHandler.java:468)
at io.netty.channel.SingleThreadIoEventLoop.runIo(SingleThreadIoEventLoop.java:206)
at io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:177)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1073)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Unknown Source)
Steps to reproduce
No response
Do you have a reproducer?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working