[STDERR]
Error: VM option 'AllowArchivingWithJavaAgent' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'AllowArchivingWithJavaAgent'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[2021-12-02T21:48:45.275016688Z] Waiting for completion for process 308209
[2021-12-02T21:48:45.275393307Z] Waiting for completion finished for process 308209
STDERR:
stdout: [];
stderr: [Error: VM option 'AllowArchivingWithJavaAgent' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'AllowArchivingWithJavaAgent'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
exitValue = 1
java.lang.RuntimeException: 'Loading classes to share' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
at jdk.test.lib.cds.CDSTestUtils.checkDump(CDSTestUtils.java:273)
at jdk.test.lib.cds.CDSTestUtils.createArchiveAndCheck(CDSTestUtils.java:297)
at LambdaWithJavaAgent.main(LambdaWithJavaAgent.java:76)
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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:833)