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

sun/security/provider/certpath/OCSP/OCSPNoContentLength.java fails due to network errors

XMLWordPrintable

    • b14
    • Verified

        The new sun/security/provider/certpath/OCSP/OCSPNoContentLength appears to be failing due to a SocketException occurring when the client CertPathValidator tries to perform a OCSP lookup on the certificate.

        System.err reports:
        java.security.cert.CertPathValidatorException: Unable to determine revocation status due to network error
        at java.base/sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)
        at java.base/sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:224)
        at java.base/sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:144)
        at java.base/sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:83)
        at java.base/java.security.cert.CertPathValidator.validate(CertPathValidator.java:309)
        at OCSPNoContentLength.main(OCSPNoContentLength.java:90)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1623)
        Caused by: java.net.SocketException: Connection reset
        at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:313)
        at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:341)
        at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:791)
        at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
        at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:258)
        at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:313)
        at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:386)
        at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:365)
        at java.base/java.io.FilterInputStream.read(FilterInputStream.java:119)
        at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3652)
        at java.base/java.io.InputStream.readNBytes(InputStream.java:409)
        at java.base/java.io.InputStream.readAllBytes(InputStream.java:346)
        at java.base/sun.security.provider.certpath.OCSP.getOCSPBytes(OCSP.java:223)
        at java.base/sun.security.provider.certpath.OCSP.check(OCSP.java:133)
        at java.base/sun.security.provider.certpath.RevocationChecker.checkOCSP(RevocationChecker.java:780)
        at java.base/sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:369)
        at java.base/sun.security.provider.certpath.RevocationChecker.check(RevocationChecker.java:343)
        at java.base/sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)
        ... 9 more

        JavaTest Message: Test threw exception: java.security.cert.CertPathValidatorException: Unable to determine revocation status due to network error
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.security.cert.CertPathValidatorException: Unable to determine revocation status due to network error

          There are no Sub-Tasks for this issue.

              jnimeh Jamil Nimeh
              jnimeh Jamil Nimeh
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: