java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)

JDK Bug System | Zoltan Majo | 3 months ago
  1. 0

    The test jvmci/compilerToVM/MaterializeVirtualObjectTest.java fails if run with -XX:-EliminateAllocations. I managed to reproduce the failure on linux-x64 with an early-access jdk9-b138 build. Here is the relevant output: java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177) at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:60) at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:65) at compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.<clinit>(MaterializeVirtualObjectTest.java:88) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) STATUS:Failed.`main' threw exception: java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl;

    JDK Bug System | 3 months ago | Zoltan Majo
    java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)
  2. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ScalaTemplateCompiler error associated with scala.runtime.RichChar conversion when use sbt directly

    Google Groups | 5 years ago | hotstong
    java.lang.NoSuchMethodError: scala.runtime.ScalaRunTime$.ensureAccessible(Ljava/ lang/reflect/Method;)Ljava/lang/reflect/Method;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)

      at compiler.jvmci.common.CTVMUtilities.getResolvedMethod()
    2. compiler.jvmci.common
      CTVMUtilities.getResolvedMethod
      1. compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:60)
      2. compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:65)
      2 frames
    3. compiler.jvmci.compilerToVM
      MaterializeVirtualObjectTest.<clinit>
      1. compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.<clinit>(MaterializeVirtualObjectTest.java:88)
      1 frame