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

sun/security/mscapi/KeytoolChangeAlias.java fails with "Alias <246810> does not exist"

    XMLWordPrintable

Details

    • b07
    • x86_64
    • windows

    Backports

      Description

        The following test failed in the JDK22 CI:

        sun/security/mscapi/KeytoolChangeAlias.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/247)----------
        command: main KeytoolChangeAlias
        reason: Assumed action based on file name: run main KeytoolChangeAlias
        started: Tue Dec 12 15:47:55 UTC 2023
        Mode: agentvm
        Agent id: 33
        finished: Tue Dec 12 15:48:12 UTC 2023
        elapsed time (seconds): 16.045
        ----------configuration:(14/1373)*----------

        <snip>

        ----------System.out:(8/625)*----------
        Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+28-2269\\windows-x64.jdk\\jdk-22\\bin\\keytool.exe -J-Duser.language=en -J-Duser.country=US -changealias -storetype Windows-My -alias 246810 -destalias 13579]
        [2023-12-12T15:48:11.613932600Z] Gathering output for process 49464
        [2023-12-12T15:48:11.988664400Z] Waiting for completion for process 49464
        [2023-12-12T15:48:11.988664400Z] Waiting for completion finished for process 49464
        Output and diagnostic info for process 49464 was saved into 'pid-49464-output.log'
        keytool error: java.lang.Exception: Alias <246810> does not exist

        Exit value: 1
        ----------System.err:(21/1121)----------
         stdout: [keytool error: java.lang.Exception: Alias <246810> does not exist
        ];
         stderr: []
         exitValue = 1

        java.security.KeyStoreException: error 2148081668, Cannot find object or property.

        at jdk.crypto.mscapi/sun.security.mscapi.CKeyStore.removeCertificate(Native Method)
        at jdk.crypto.mscapi/sun.security.mscapi.CKeyStore$KeyEntry.delete(CKeyStore.java:190)
        at jdk.crypto.mscapi/sun.security.mscapi.CKeyStore.engineDeleteEntry(CKeyStore.java:539)
        at jdk.crypto.mscapi/sun.security.mscapi.CKeyStore$MY.engineDeleteEntry(CKeyStore.java:60)
        at java.base/java.security.KeyStore.deleteEntry(KeyStore.java:1269)
        at KeytoolChangeAlias.main(KeytoolChangeAlias.java:72)
        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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
        at java.base/java.lang.Thread.run(Thread.java:1570)

        JavaTest Message: Test threw exception: java.security.KeyStoreException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.security.KeyStoreException: error 2148081668, Cannot find object or property.

        Attachments

          Issue Links

            Activity

              People

                mdonovan Matthew Donovan
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: