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

java/net/httpclient/ShortResponseBodyPost.java due to SSL handshake

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • core-libs
    • x86_64
    • windows



      There are multiple Exceptions in the logs

      DEBUG: [HttpClient-Worker-3] [2s 815ms] SSL Reader(SocketTube(26)) Unwrapped: consumed: 1467
      DEBUG: [HttpClient-Worker-3] [2s 815ms] SSL Reader(SocketTube(26)) handshaking
      DEBUG: [HttpClient-Worker-3] [2s 815ms] SSLFlowDelegate(SocketTube(26)) obtaining and initiating task execution
      DEBUG: [HttpClient-Worker-3] [2s 815ms] SSLFlowDelegate(SocketTube(26)) #tasks to execute: 1
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SSLFlowDelegate(SocketTube(26)) finished task execution
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SSL Writer(SocketTube(26)) processData, writeList remaining:0, hsTriggered:false, needWrap:false
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SSL Reader(SocketTube(26)) requesting 1
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SocketTube(26) got some demand for reading
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SocketTube(26) resuming read event
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SocketTube(26) leaving request(1): Reading: [ops=R, demand=1, stopped=false], Writing: [ops=None, demand=1]
      DEBUG: [HttpClient-3-SelectorManager] [2s 818ms] SelectorAttachment Registering jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent@3bb01c2 for R (false)
      DEBUG: [HttpClient-Worker-3] [2s 818ms] SSL Reader(SocketTube(26)) processData: readBuf remaining:0, state: HANDSHAKING , engine handshake status:NEED_UNWRAP
      java.lang.RuntimeException: Unexpected:
      at ShortResponseBody$PlainCloseImmediatelyServer.run(ShortResponseBody.java:459)
      Caused by: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
      at java.base/sun.security.ssl.SSLSocketInputRecord.handleUnknownRecord(SSLSocketInputRecord.java:462)
      at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:175)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
      at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1507)
      at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1422)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
      at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
      at ShortResponseBody$PlainCloseImmediatelyServer.run(ShortResponseBody.java:452)
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Unexpected:

            dfuchs Daniel Fuchs
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: