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

runtime/SharedArchiveFile/serviceability/ReplaceCriticalClasses.java fails with ClassNotFoundException: jdk.internal.vm.PostVMInitHook

    Details

    • Subcomponent:
    • Introduced In Build:
      b18
    • Introduced In Version:
      12
    • Resolved In Build:
      b22
    • CPU:
      generic
    • OS:
      linux

      Description

      openjdk version "12-ea" 2019-03-19
      OpenJDK Runtime Environment (build 12-ea+18)
      OpenJDK 64-Bit Server VM (build 12-ea+18, mixed mode, sharing)

      Command used: ./jtreg/bin/jtreg -verbose:all -jdk:./jdk-12 -nativepath:./testlib/hotspot/jtreg/native -dir:./jdk1218/test/hotspot/jtreg runtime/SharedArchiveFile/serviceability/ReplaceCriticalClasses.java

      Error log(Attached .jtr file):
      java.lang.ClassNotFoundException: jdk.internal.vm.PostVMInitHook
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:314)
      at ReplaceCriticalClasses.launchChild(ReplaceCriticalClasses.java:119)
      at ReplaceCriticalClasses.launchChildProcesses(ReplaceCriticalClasses.java:93)
      at ReplaceCriticalClasses.main(ReplaceCriticalClasses.java:45)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:835)

        Attachments

        1. ReplaceCriticalClasses.jtr
          34 kB
          Abdul Kolarkunnu

          Activity

            People

            • Assignee:
              iklam Ioi Lam
              Reporter:
              akolarkunnu Abdul Kolarkunnu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: