Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1725

JDK9AlpnProvider throws UnsupportedOperationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • Hide

      Just run SimpleInvocationTestCase in wildfly-http-client with JDK8_251 or later

      Show
      Just run SimpleInvocationTestCase in wildfly-http-client with JDK8_251 or later

      When invoking SSLEngine.getSupportedProtocol, the provider must be ready to catch UnsupportedOperationException and return null:

      16:20:59,361 ERROR (XNIO-3 I/O-1) [org.xnio.listener] <ChannelListeners.java:94> XNIO001007: A channel event listener threw an exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
              at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:99)
              at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:81)
              at io.undertow.client.ALPNClientSelector$2.handleEvent(ALPNClientSelector.java:77)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
              at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1145)
              at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1222)
              at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:94)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:571)
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at io.undertow.protocols.alpn.JDK9AlpnProvider.getSelectedProtocol(JDK9AlpnProvider.java:97)
              ... 8 more
      Caused by: java.lang.UnsupportedOperationException
              at javax.net.ssl.SSLEngine.getApplicationProtocol(SSLEngine.java:1282)
              ... 12 more
      
      

              flaviarnn Flavia Rainone
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: