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

NMTWithCDS failed with Error: VM option 'SharedArchiveFile' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.

XMLWordPrintable

      Command : Command: ./jdk1.8.0_152/bin/java -jar ./jtreg.jar -a -verbose:summary -conc:auto -ignore:quiet -timeoutFactor:5 -agentvm -dir:./jdk8u152-b04/hotspot/test -w:./hotspot -r:./hotspot runtime/NMT/NMTWithCDS.java

      Error Trace:
      stderr: [Error: VM option 'SharedArchiveFile' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ]
       exitValue = 1

      java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr

      at com.oracle.java.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:134)
      at NMTWithCDS.main(NMTWithCDS.java:51)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.lang.Thread.run(Thread.java:748)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Unable to use shared archive' missing from stdout/stderr

      JavaTest Message: shutting down test

            Unassigned Unassigned
            akolarkunnu Abdul Kolarkunnu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: