NPE in HttpSessionHandler.channelInactive with JRE11
See original GitHub issueThe following issue is reproduced on latest armeria (0.90.x) with openjdk 11.0.2 when the remote server requires a downgrade from HTTP2 to H1C :
java.lang.NullPointerException: remoteAddress
at io.netty.util.internal.ObjectUtil.checkNotNull(ObjectUtil.java:33)
at io.netty.bootstrap.Bootstrap.connect(Bootstrap.java:141)
at com.linecorp.armeria.client.HttpChannelPool.connect(HttpChannelPool.java:347)
at com.linecorp.armeria.client.HttpSessionHandler.channelInactive(HttpSessionHandler.java:306)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:393)
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:358)
at io.netty.handler.codec.http2.Http2ConnectionHandler.channelInactive(Http2ConnectionHandler.java:415)
It appears that the Channel’s remoteAddress is not set. (requestedRemoteAddress is set though)
This cannot be reproduced e.g. with oracle 10.0.2 where remoteAddress = requestedRemoteAddress
It could be an issue with netty (interop with recent openJDKs) or with the way Armeria uses Netty.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (9 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@minwoox @ikhoon I’m not using OS X, so could you guys take a look into this?
Thanks for checking it @delegacy!