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

sun/net/www/protocol/https/HttpsURLConnection/B6216082.java fails with "SocketException: Unexpected end of file from server"

XMLWordPrintable

    • b11
    • Verified

        The following test failed in the JDK19 CI:

        sun/net/www/protocol/https/HttpsURLConnection/B6216082.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(5/251)----------
        command: main B6216082
        reason: User specified action: run main/othervm B6216082
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base --add-exports java.base/sun.net.www=ALL-UNNAMED
        elapsed time (seconds): 1.31
        ----------configuration:(4/99)----------
        Boot Layer
          add modules: java.base
          add exports: java.base/sun.net.www ALL-UNNAMED

        ----------System.out:(3/75)----------
        100.101.199.161
        https server listen on: 39879
        https proxy listen on: 35221
        ----------System.err:(21/1569)----------
        java.net.SocketException: Unexpected end of file from server
        at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:936)
        at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling0(HttpURLConnection.java:2173)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2135)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1664)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1588)
        at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308)
        at B6216082.makeHttpCall(B6216082.java:183)
        at B6216082.main(B6216082.java:90)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:828)

        JavaTest Message: Test threw exception: java.net.SocketException: Unexpected end of file from server
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.net.SocketException: Unexpected end of file from server
        ----------rerun:(38/8066)*----------

        I'm starting this bug as a P2 since it looks like a regression.

          There are no Sub-Tasks for this issue.

              mchhipa Mahendra Chhipa
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: