question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE in SSL handler after 4.1.77.Final -> 4.1.78.Final update

See original GitHub issue
11:29:02.695 WARN - Failed to remove a handler: io.netty.handler.ssl.SslHandler
java.lang.NullPointerException: Cannot invoke "io.netty.handler.ssl.SslHandler$SslHandlerCoalescingBufferQueue.isEmpty()" because "this.pendingUnencryptedWrites" is null
        at io.netty.handler.ssl.SslHandler.handlerRemoved0(SslHandler.java:677) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.codec.ByteToMessageDecoder.handlerRemoved(ByteToMessageDecoder.java:261) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.callHandlerRemoved(AbstractChannelHandlerContext.java:946) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:614) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.DefaultChannelPipeline.replace(DefaultChannelPipeline.java:572) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.DefaultChannelPipeline.replace(DefaultChannelPipeline.java:509) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.ssl.SniHandler.replaceHandler(SniHandler.java:134) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.ssl.SniHandler.onLookupComplete(SniHandler.java:114) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.ssl.AbstractSniHandler.onLookupComplete(AbstractSniHandler.java:132) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.ssl.SslClientHelloHandler.select(SslClientHelloHandler.java:190) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.ssl.SslClientHelloHandler.decode(SslClientHelloHandler.java:149) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:510) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:449) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:487) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:385) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[webdash-0.76.3-SNAPSHOT-1,293.jar:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]

Java:

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1)
OpenJDK 64-Bit Server VM (build 17.0.3+7-Ubuntu-0ubuntu0.20.04.1, mixed mode, sharing)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
normanmaurercommented, Jun 20, 2022

the only reason for this I can think of is that you might not use the required netty-tcnative* version

That was my first thought, but I didn’t have a chance to check. Every time I update netty - I don’t know if I have to update tcnative, and if yes - what version should I use. During a single netty release, sometimes few tcnative releases are done, so it’s always an unknown thing for me.

@doom369 see https://github.com/netty/netty/pull/12490

Looks good.

Just depend on netty-bom ? This will ensure the right version is used

Read more comments on GitHub >

github_iconTop Results From Across the Web

[GitHub] [servicecomb-java-chassis] dependabot[bot] opened a new ...
dependabot[bot] opened a new pull request, #3078: URL: https://github.com/apache/servicecomb-java-chassis/pull/3078
Read more >
SslProvider (Netty/Handler 4.1.45.Final API) - Javadoc.io
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate...
Read more >
Changelog - http4s
This is the final planned release in the 0.21 series. Bugfixes and community submissions will be considered for discretionary releases, but the development...
Read more >
chore(deps): update all dependencies (major) (!151 ... - GitLab
This MR contains the following updates: Package Change Age Adoption Passing Confidence.
Read more >
仓库网络图 · Gitee 极速下载/apache-ranger - Gitee.com
Final RANGER-3819: Upgrade springframework version RANGER-3712:Update Apache ... code to fix NPE with kerberos RANGER-3784: Upgrade netty to 4.1.77-final ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found