Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160033

java/net/httpclient/http2/TLSConnection.java.TLSConnection failed with SSLException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      Test java/net/httpclient/http2/TLSConnection.java.TLSConnection failed with following error messages:

      Execution failed: `main' threw exception: java.lang.RuntimeException: At least one test case failed

      Standard Output

      Test #1: SSL parameters is null, expect NPE
      Got an exception:
      java.lang.NullPointerException
      at java.util.Objects.requireNonNull(java.base@9-ea/Objects.java:221)
      at java.net.http.HttpClientBuilderImpl.sslParameters(java.httpclient@9-ea/HttpClientBuilderImpl.java:67)
      at java.net.http.HttpClientBuilderImpl.sslParameters(java.httpclient@9-ea/HttpClientBuilderImpl.java:35)
      at TLSConnection.connect(TLSConnection.java:164)
      at TLSConnection.lambda$main$0(TLSConnection.java:81)
      at TLSConnection.ex
      ...[truncated 1512 chars]...
      th TLS_RSA_WITH_AES_128_CBC_SHA cipher suite, expect successful connection
      method = GET
      path =
      scheme = https
      authority = 127.0.0.1:63528
      Handler: received request to https://127.0.0.1:63528
      Handler: read 4 bytes of body:
      body
      Response: Test response
      Passed
      Check protocol: negotiated protocol: TLSv1.1
      Check protocol: expected protocol: TLSv1.1
      Check protocol: negotiated ciphersuite: TLS_RSA_WITH_AES_128_CBC_SHA
      Check protocol: expected ciphersuite: TLS_RSA_WITH_AES_128_CBC_SHA
      Test passed
          
      Standard Error

      Jun 21, 2016 12:17:10 PM java.net.http.Http2Connection <init>
      INFO: TRACE: Connection send window size 65535
      Jun 21, 2016 12:17:10 PM java.net.http.AsyncSSLDelegate logParams
      INFO: SSL: SSLParameters:
      Jun 21, 2016 12:17:10 PM java.net.http.AsyncSSLDelegate logParams
      INFO: SSL: application protocol: h2

      New connection from 7ae6793e[SSL_NULL_WITH_NULL_NULL: Socket[addr=/127.0.0.1,port=62055,localport=63528]]
      Jun 21, 2016 12:17:10 PM java.net.http.Http2Connection sendConnectionPreface
      INFO: FRAME:
      ...[truncated 12973 chars]...
      cted local=/127.0.0.1:62059 remote=/127.0.0.1:63528]
      Jun 21, 2016 12:17:11 PM java.net.http.PlainHttpConnection close
      INFO: ERROR: Closing: PlainHttpConnection: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:62058 remote=/127.0.0.1:63528]
      Jun 21, 2016 12:17:11 PM java.net.http.PlainHttpConnection close
      INFO: ERROR: Closing: PlainHttpConnection: HttpConnection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:62055 remote=/127.0.0.1:63528]
      STATUS:Passed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjiang John Jiang
                Reporter:
                amjiang Amanda Jiang (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: