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

runtime/SharedArchiveFile/CdsDifferentObjectAlignment.java fails: unable to create shared archive file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • hotspot

      The test runtime/SharedArchiveFile/CdsDifferentObjectAlignment.java fails as it was not able to create a shared archive file:

      ...
      Error occurred during initialization of VM
      Unable to use shared archive.
      ];
       stderr: [An error has occurred while processing the shared archive file.
      Unable to create shared archive file ./sample.jsa: (Permission denied).
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0]

      at com.oracle.java.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:362)
      at CdsDifferentObjectAlignment.createAndLoadSharedArchive(CdsDifferentObjectAlignment.java:69)
      at CdsDifferentObjectAlignment.main(CdsDifferentObjectAlignment.java:47)
      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:502)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:745)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0]
      ...

            ctornqvi Christian Tornqvist
            zmajo Zoltan Majo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: