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

java/security/cert/CertPathValidator/OCSP/OCSPTimeout.java fails with RuntimeException Server not ready

XMLWordPrintable

    • b07
    • x86_64
    • windows


        ----------messages:(7/489)----------
        command: main OCSPTimeout 1000 true
        reason: User specified action: run main/othervm OCSPTimeout 1000 true
        started: Sun Jun 18 01:11:16 UTC 2023
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base --add-exports java.base/sun.security.x509=ALL-UNNAMED --add-exports java.base/sun.security.provider.certpath=ALL-UNNAMED --add-exports java.base/sun.security.util=ALL-UNNAMED
        finished: Sun Jun 18 01:11:23 UTC 2023
        elapsed time (seconds): 6.967
        ----------configuration:(6/279)----------
        Boot Layer
          add modules: java.base
          add exports: java.base/sun.security.provider.certpath ALL-UNNAMED
                       java.base/sun.security.util ALL-UNNAMED
                       java.base/sun.security.x509 ALL-UNNAMED

        ----------System.out:(9/285)----------
        Generated Root CA KeyPair
        Generated End Entity KeyPair
        Root CA Created:
        Issuer: CN=Root CA Cert, O=SomeCompany
        Subject: CN=Root CA Cert, O=SomeCompany
        Serial: 1

        [MainThread]: nextUpdate set to Sun Jun 18 02:11:17 UTC 2023
        [MainThread]: Response Content-Length field disabled
        ----------System.err:(12/658)----------
        java.lang.RuntimeException: Server not ready
        at OCSPTimeout.createPKI(OCSPTimeout.java:194)
        at OCSPTimeout.main(OCSPTimeout.java:89)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1583)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Server not ready
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Server not ready


        The following code is prone to intermittent this failures under heavy OS load

        185: rootOcsp = new SimpleOCSPServer(rootKeystore, passwd, ROOT_ALIAS, null);
        186: rootOcsp.enableLog(debug);
        187: rootOcsp.setNextUpdateInterval(3600);
        188: rootOcsp.setDisableContentLength(true);
        189: rootOcsp.start();
        190:
        191: // Wait 5 seconds for server ready
        192: boolean readyStatus = rootOcsp.awaitServerReady(5, TimeUnit.SECONDS);
        193: if (!readyStatus) {
        194: throw new RuntimeException("Server not ready");
        195: }

              mdonovan Matthew Donovan
              msheppar Mark Sheppard
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: