ayltai/spring-graalvm-native-plugin

Caused by: jdk.vm.ci.common.JVMCIError: failed guarantee: DynamicNewInstanceNode.instanceType is constant, should have been canonicalized to NewInstanceNode.

oryjk opened this issue · 1 comments

oryjk commented

Describe the bug
when I use gradle buildNativeImage, an error occur

Caused by: jdk.vm.ci.common.JVMCIError: failed guarantee: DynamicNewInstanceNode.instanceType is constant, should have been canonicalized to NewInstanceNode.

To Reproduce
my gradle file

apply plugin: 'org.springframework.boot'
apply plugin: 'com.github.ayltai.spring-graalvm-native-plugin'
dependeny…………

nativeImage {
    mainClassName              = 'com.xxx.config.ConfigServer'
    traceClassInitialization   = true
    reportExceptionStackTraces = true
    removeUnusedAutoConfig     = true
    removeYamlSupport          = true
    removeSpelSupport          = true
    removeJmxSupport           = true
    maxHeapSize                = '4G'
}

graalvm version: graalvm-ce-java8-20.1.0
spring-graalvm-native-plugin version: 1.0.7

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS
  • Version 10.15.3

From the stacktrace, that was an error caused by GraalVM, not related to this plugin.