Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23369

[QE](7.4.z) OpenSSL doesn't work with JDK 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.4.4.CR2, 7.4.4.GA
    • 7.4.4.CR1
    • Security
    • None
    • False
    • None
    • False
    • Resolved in OpenSSL version 2.2.0.Final-redhat-00002.
    • Hide

      1. cofigure EAP to use OpenSSL via CLI

      /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:write-attribute(name=protocol, value=openssl.TLS)
      reload
      

      2. perform a request to server to get the exception, e.g.

      curl -k https://localhost:8443
      
      Show
      1. cofigure EAP to use OpenSSL via CLI /core-service=management/security-realm=ApplicationRealm/server-identity=ssl:write-attribute(name=protocol, value=openssl.TLS) reload 2. perform a request to server to get the exception, e.g. curl -k https: //localhost:8443

      Trying to use OpenSSL with JDK8 results in

      ERROR [io.undertow.request.io] (default I/O-16) UT005090: Unexpected failure: java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
      	at org.wildfly.openssl.OpenSSLEngine.unwrap(OpenSSLEngine.java:549)
      	at io.undertow.server.protocol.http.ALPNLimitingSSLEngine.unwrap(ALPNLimitingSSLEngine.java:159)
      	at io.undertow.protocols.ssl.SslConduit.doUnwrap(SslConduit.java:762)
      	at io.undertow.protocols.ssl.SslConduit.read(SslConduit.java:587)
      	at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)
      	at io.undertow.server.protocol.http.AlpnOpenListener$AlpnConnectionListener.handleEvent(AlpnOpenListener.java:356)
      	at io.undertow.server.protocol.http.AlpnOpenListener.handleEvent(AlpnOpenListener.java:313)
      	at io.undertow.server.protocol.http.AlpnOpenListener.handleEvent(AlpnOpenListener.java:67)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      	at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
      	at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      	at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      	at org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
      	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)
      

      When downgrading back to OpenSSL 2.1.3.Final the issue goes away.

              rhn-support-ivassile Ilia Vassilev
              pmackay@redhat.com Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: