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

sun/security/mscapi/SignedObjectChain.java failed due to "KeyException: An internal error occurred."

    Details

      Description

      The following test failed in the JDK14 CI:

      sun/security/mscapi/SignedObjectChain.java

      Here's a snippet from the log file:

      ----------System.out:(35/2536)----------
      Test: provider = SunMSCAPI, signature alg = MD2withRSA, w/ null, key alg = RSA
      signed data: to-be-signed
      Test passed
      Test: provider = SunMSCAPI, signature alg = MD5withRSA, w/ null, key alg = RSA
      Unexpected exception: java.security.ProviderException: java.security.KeyException: An internal error occurred.

      java.security.ProviderException: java.security.KeyException: An internal error occurred.

      at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateKeyPair(CKeyPairGenerator.java:126)
      at java.base/java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:722)
      at java.base/java.security.KeyPairGenerator.genKeyPair(KeyPairGenerator.java:495)
      at Chain.runTest(Chain.java:215)
      at SignedObjectChain.lambda$main$0(SignedObjectChain.java:54)
      at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
      at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
      at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
      at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
      at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
      at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
      at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
      at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      at java.base/java.util.stream.ReferencePipeline.allMatch(ReferencePipeline.java:533)
      at SignedObjectChain.main(SignedObjectChain.java:53)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.security.KeyException: An internal error occurred.

      at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateCKeyPair(Native Method)
      at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateKeyPair(CKeyPairGenerator.java:121)
      ... 21 more
      ----------System.err:(12/725)----------
      java.lang.RuntimeException: Some tests failed
      at SignedObjectChain.main(SignedObjectChain.java:59)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:832)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Some tests failed


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Some tests failed

        Attachments

          Activity

            People

            • Assignee:
              weijun Weijun Wang
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: