JDK-8160033 : java/net/httpclient/http2/TLSConnection.java.TLSConnection failed with SSLException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-06-22
  • Updated: 2016-07-05
  • Resolved: 2016-06-24
Related Reports
Duplicate :  
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.


Comments
It looks JDK-8157482 is tracking this test failure, and Artem is the Assignee.
22-06-2016