Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16958 Camel and JDK17
  3. CAMEL-16961

NettySSLClientCertHeadersTest in camel-netty failed with JDK17

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.12.0
    • camel-netty
    • None
    • Unknown

    Description

      get error like

      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) [?:?]
      
      

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: