[
https://issues.apache.org/jira/browse/CAMEL-16961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Yue Fang resolved CAMEL-16961.
--------------------------------------
Fix Version/s: 3.12.0
Resolution: Fixed
> NettySSLClientCertHeadersTest in camel-netty failed with JDK17
> --------------------------------------------------------------
>
> Key: CAMEL-16961
> URL: https://issues.apache.org/jira/browse/CAMEL-16961
> Project: Camel
> Issue Type: Sub-task
> Components: camel-netty
> Reporter: Freeman Yue Fang
> Assignee: Freeman Yue Fang
> Priority: Major
> Fix For: 3.12.0
>
>
> get error like
> {code}
> 2021-09-14 14:53:52,800 [erExecutorGroup] WARN NettyConsumer
> - Closing channel as an exception was thrown from Netty. Caused by:
> [java.lang.UnsupportedOperationException - This method is deprecated and
> marked for removal. Use the getPeerCertificates() method instead.]
> java.lang.UnsupportedOperationException: This method is deprecated and marked
> for removal. Use the getPeerCertificates() method instead.
> at
> javax.net.ssl.SSLSession.getPeerCertificateChain(SSLSession.java:295) ~[?:?]
> at
> org.apache.camel.component.netty.NettyEndpoint.enrichWithClientCertInformation(NettyEndpoint.java:141)
> ~[classes/:?]
> at
> org.apache.camel.component.netty.NettyEndpoint.updateMessageHeader(NettyEndpoint.java:126)
> ~[classes/:?]
> at
> org.apache.camel.component.netty.handlers.ServerChannelHandler.createExchange(ServerChannelHandler.java:119)
> ~[classes/:?]
> at
> org.apache.camel.component.netty.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:90)
> ~[classes/:?]
> at
> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
> ~[netty-transport-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
> [netty-transport-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:61)
> [netty-transport-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:370)
> [netty-transport-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
> [netty-common-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
> [netty-common-4.1.63.Final.jar:4.1.63.Final]
> at
> io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
> [netty-common-4.1.63.Final.jar:4.1.63.Final]
> at java.lang.Thread.run(Thread.java:833) [?:?]
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)