oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.33k stars 1.63k forks source link

gradle nativeRun with error input_file_does_not_exist #7871

Closed xljnc closed 8 months ago

xljnc commented 11 months ago

Describe the issue when I'm running nativeRun with gradle, error occurs, below is the error log

graalvm gradle plugin version: 'org.graalvm.buildtools.native' version '0.9.28'

gradle nativeCompile OutPut:

image

gradle config:

image

Describe GraalVM and your environment:

please look at this ,thanks.

More details Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.

   警告: 未知的枚举常量 When.MAYBE
  原因: 找不到javax.annotation.meta.When的类文件
警告: 未知的枚举常量 When.MAYBE
  原因: 找不到javax.annotation.meta.When的类文件
警告: 未知的枚举常量 When.MAYBE
  原因: 找不到javax.annotation.meta.When的类文件
警告: 未知的枚举常量 When.MAYBE
  原因: 找不到javax.annotation.meta.When的类文件
警告: 未知的枚举常量 When.MAYBE
  原因: 找不到javax.annotation.meta.When的类文件
5 个警告

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.1.5)

2023-11-23T09:09:26.417+08:00  INFO 18976 --- [           main] c.w.t.j.demo.SpringbootDemoApplication   : Starting SpringbootDemoApplication using Java 21.0.1 with PID 18976 (/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/classes/java/main started by xljnc in /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo)
2023-11-23T09:09:26.418+08:00  INFO 18976 --- [           main] c.w.t.j.demo.SpringbootDemoApplication   : No active profile set, falling back to 1 default profile: "default"
注: /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/generated/aotSources/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration__BeanDefinitions.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-core/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-web/native-image.properties
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/reflect-config.json
Apply jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/resource-config.json
Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-reflection.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: The option '-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-resource.json' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.
Apply jar:file:///Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties
Apply jar:file:///Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties
Executing [
HOME=/Users/xljnc \
PATH=/Users/xljnc/software/hadoop/bin:/Users/xljnc/software/hadoop/sbin:/Users/xljnc/software/tidb/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/sbin:/Users/xljnc/software/apache-maven/bin:/Users/xljnc/software/neo4j/bin:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/bin:/Users/xljnc/software/gradle/bin:/Users/xljnc/software/rocketmq/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/go/bin \
PWD=/Users/xljnc/IdeaProjects/jdk21-research \
USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM=true \
/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/bin/java \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-Dsubstratevm.IgnoreGraalVersionCheck=true \
--add-exports=java.base/com.sun.crypto.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.access=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.event=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.loader=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.logger=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.misc=com.oracle.svm.svm_enterprise,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto \
--add-exports=java.base/jdk.internal.module=org.graalvm.nativeimage.base,org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.org.objectweb.asm=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.perf=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.platform=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.ref=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=java.base/jdk.internal.reflect=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.vm.annotation=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal.vm=org.graalvm.nativeimage.builder \
--add-exports=java.base/jdk.internal=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.invoke.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.net.www=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.net=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.nio.ch=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=java.base/sun.reflect.annotation=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.factory=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.repository=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.scope=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.reflect.generics.tree=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.jca=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.ssl=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.util=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.security.x509=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.text.spi=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.calendar=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.cldr=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.locale.provider=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.locale=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util.resources=org.graalvm.nativeimage.builder \
--add-exports=java.base/sun.util=org.graalvm.nativeimage.builder \
--add-exports=java.management/com.sun.jmx.mbeanserver=org.graalvm.nativeimage.builder \
--add-exports=java.management/sun.management=org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto,org.graalvm.truffle.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=com.oracle.graal.graal_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.base,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.objectfile,org.graalvm.nativeimage.pointsto,org.graalvm.truffle.compiler \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=com.oracle.graal.graal_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder,org.graalvm.nativeimage.pointsto \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=com.oracle.graal.graal_enterprise,com.oracle.svm.svm_enterprise,jdk.internal.vm.compiler,org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.events=org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal.jfc=org.graalvm.nativeimage.builder \
--add-exports=jdk.jfr/jdk.jfr.internal=org.graalvm.nativeimage.builder \
--add-exports=jdk.management/com.sun.management.internal=org.graalvm.nativeimage.builder \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-XX:MaxRAMPercentage=85.0 \
-XX:GCTimeRatio=9 \
-XX:+ExitOnOutOfMemoryError \
-Djava.awt.headless=true \
'-Dorg.graalvm.vendor=Oracle Corporation' \
-Dorg.graalvm.vendorurl=https://www.graalvm.org/ \
'-Dorg.graalvm.vendorversion=Oracle GraalVM 21.0.1+12.1' \
-Dorg.graalvm.version=23.1.1 \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
--add-modules=ALL-DEFAULT \
--module-path \
/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/builder/svm.jar:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/builder/native-image-base.jar:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/builder/objectfile.jar:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/builder/svm-enterprise.jar:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/builder/pointsto.jar \
--module \
org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner \
-imagecp \
/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar \
-imagemp \
/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/graal-microservices.jar:/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/library-support.jar \
-H:CLibraryPath=/Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/clibraries/darwin-aarch64 \
-H:Path@driver=/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile \
'-H:Class@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/native-image.properties=com.wt.test.jdk21.demo.SpringbootDemoApplication' \
'-H:+ReportUnsupportedElementsAtRuntime@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/native-image.properties+api' \
'-H:FallbackThreshold@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/native-image.properties+api=0' \
'-H:+InstallExitHandlers@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/native-image.properties+api' \
'-H:ReflectionConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-resource.json' \
'-H:ReflectionConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-resource.json' \
'-H:ReflectionConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-resource.json' \
'-H:ClassInitialization@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-core/native-image.properties+api=org.springframework.aot.nativex.feature.ThrowawayClassLoader:build_time' \
'-H:Features@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-core/native-image.properties+api=org.springframework.aot.nativex.feature.PreComputeFieldFeature' \
'-H:EnableURLProtocols@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-web/native-image.properties+api=http' \
'-H:EnableURLProtocols@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/org.springframework/spring-web/native-image.properties+api=https' \
'-H:ReflectionConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/reflect-config.json+api=META-INF/native-image/com.wt.test.jdk21/springboot-demo/reflect-config.json' \
'-H:ResourceConfigurationResources@jar:file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com.wt.test.jdk21/springboot-demo/resource-config.json+api=META-INF/native-image/com.wt.test.jdk21/springboot-demo/resource-config.json' \
-H:FallbackThreshold@user+api=0 \
-H:+SharedLibrary@user+api \
-H:Name@user+api=springboot-demo \
-H:ConfigurationFileDirectories@user=/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/generated/generateResourcesConfigFile,/Users/xljnc/software/gradle/home/native-build-tools/repositories/2d56cfd38060572ddc17bf51def1427d4df639bf/exploded/ch.qos.logback/logback-classic/1.4.1,/Users/xljnc/software/gradle/home/native-build-tools/repositories/2d56cfd38060572ddc17bf51def1427d4df639bf/exploded/com.fasterxml.jackson.core/jackson-databind/2.15.2,/Users/xljnc/software/gradle/home/native-build-tools/repositories/2d56cfd38060572ddc17bf51def1427d4df639bf/exploded/org.apache.tomcat.embed/tomcat-embed-core/10.0.20 \
'-H:Class@explicit main-class=com.wt.test.jdk21.demo.SpringbootDemoApplication' \
-H:ImageBuildID@driver=e40d8783-0c34-d324-a69e-acdaffc63221 \
'-H:Features@jar:file:///Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties+api=com.oracle.svm.thirdparty.gson.GsonFeature' \
'-H:Features@jar:file:///Library/Java/JavaVirtualMachines/graalvm-jdk-21/Contents/Home/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties+api=com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature,com.oracle.svm.polyglot.scala.ScalaFeature'
]
========================================================================================================================
GraalVM Native Image: Generating 'springboot-demo' (shared library)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (6.4s @ 0.21GB)
 Java version: 21.0.1+12, vendor version: Oracle GraalVM 21.0.1+12.1
 Graal compiler: optimization level: 2, target machine: armv8-a, PGO: off
 C compiler: cc (apple, arm64, 15.0.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 2 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
 - org.springframework.aot.nativex.feature.PreComputeFieldFeature
------------------------------------------------------------------------------------------------------------------------
 2 experimental option(s) unlocked:
 - '-H:ResourceConfigurationResources' (origin(s): 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar', 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar', 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar')
 - '-H:ReflectionConfigurationResources' (origin(s): 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar', 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar', 'META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties' in 'file:///Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/libs/nativecompile-classpath-0.0.1-SNAPSHOT.jar')
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 24.18GB of memory (75.6% of 32.00GB system memory, determined at start)
 - 12 thread(s) (100.0% of 12 available processor(s), determined at start)
Field org.apache.commons.logging.LogAdapter#log4jSpiPresent set to true at build time
Field org.apache.commons.logging.LogAdapter#log4jSlf4jProviderPresent set to true at build time
Field org.apache.commons.logging.LogAdapter#slf4jSpiPresent set to true at build time
Field org.apache.commons.logging.LogAdapter#slf4jApiPresent set to true at build time
Field org.springframework.core.NativeDetector#inNativeImage set to true at build time
Field org.springframework.http.converter.json.Jackson2ObjectMapperBuilder#jackson2XmlPresent set to false at build time
Field org.springframework.web.client.RestTemplate#romePresent set to false at build time
Field org.springframework.web.client.RestTemplate#jaxb2Present set to false at build time
Field org.springframework.web.client.RestTemplate#jackson2Present set to true at build time
Field org.springframework.web.client.RestTemplate#jackson2XmlPresent set to false at build time
Field org.springframework.web.client.RestTemplate#jackson2SmilePresent set to false at build time
Field org.springframework.web.client.RestTemplate#jackson2CborPresent set to false at build time
Field org.springframework.web.client.RestTemplate#gsonPresent set to false at build time
Field org.springframework.web.client.RestTemplate#jsonbPresent set to false at build time
Field org.springframework.web.client.RestTemplate#kotlinSerializationCborPresent set to false at build time
Field org.springframework.web.client.RestTemplate#kotlinSerializationJsonPresent set to false at build time
Field org.springframework.web.client.RestTemplate#kotlinSerializationProtobufPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#romePresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jaxb2Present set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2Present set to true at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2XmlPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2SmilePresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2CborPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#gsonPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jsonbPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationCborPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationJsonPresent set to false at build time
Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationProtobufPresent set to false at build time
Field org.springframework.web.servlet.view.InternalResourceViewResolver#jstlPresent set to false at build time
Field org.springframework.boot.logging.java.JavaLoggingSystem$Factory#PRESENT set to true at build time
Field org.springframework.boot.logging.log4j2.Log4J2LoggingSystem$Factory#PRESENT set to false at build time
Field org.springframework.boot.logging.logback.LogbackLoggingSystem$Factory#PRESENT set to true at build time
Field org.springframework.cglib.core.AbstractClassGenerator#inNativeImage set to true at build time
Field org.springframework.core.KotlinDetector#kotlinPresent set to false at build time
Field org.springframework.core.KotlinDetector#kotlinReflectPresent set to false at build time
Field org.springframework.aot.AotDetector#inNativeImage set to true at build time
Field org.springframework.format.support.DefaultFormattingConversionService#jsr354Present set to false at build time
Field org.springframework.web.context.support.StandardServletEnvironment#jndiPresent set to true at build time
Field org.springframework.boot.logging.logback.LogbackLoggingSystemProperties#JBOSS_LOGGING_PRESENT set to false at build time
Field org.springframework.web.context.support.WebApplicationContextUtils#jsfPresent set to false at build time
Field org.springframework.web.context.request.RequestContextHolder#jsfPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jaxb2Present set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2Present set to true at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2XmlPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jackson2SmilePresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#gsonPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jsonbPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationCborPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationJsonPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#kotlinSerializationProtobufPresent set to false at build time
Field org.springframework.context.event.ApplicationListenerMethodAdapter#reactiveStreamsPresent set to false at build time
Field org.springframework.core.ReactiveAdapterRegistry#reactorPresent set to false at build time
Field org.springframework.core.ReactiveAdapterRegistry#rxjava3Present set to false at build time
Field org.springframework.core.ReactiveAdapterRegistry#kotlinCoroutinesPresent set to false at build time
Field org.springframework.core.ReactiveAdapterRegistry#mutinyPresent set to false at build time
Field org.springframework.boot.autoconfigure.web.format.WebConversionService#JSR_354_PRESENT set to false at build time
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Field org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler#isContextPropagationPresent set to false at build time
Field org.springframework.web.servlet.support.RequestContext#jstlPresent set to false at build time
Found pending operations, continuing analysis.
[2/8] Performing analysis...  [******]                                                                  (18.6s @ 1.64GB)
   16,435 reachable types   (89.9% of   18,286 total)
   25,536 reachable fields  (64.7% of   39,448 total)
   86,629 reachable methods (64.6% of  134,133 total)
    5,299 types,   411 fields, and 5,394 methods registered for reflection
       62 types,    62 fields, and    55 methods registered for JNI access
        5 native libraries: -framework CoreServices, -framework Foundation, dl, pthread, z
[3/8] Building universe...                                                                               (2.6s @ 1.69GB)
[4/8] Parsing methods...      [**]                                                                       (2.5s @ 2.04GB)
[5/8] Inlining methods...     [****]                                                                     (0.9s @ 1.84GB)
[6/8] Compiling methods...    [*****]                                                                   (30.0s @ 2.06GB)
[7/8] Layouting methods...    [**]                                                                       (4.9s @ 3.10GB)
[8/8] Creating image...       [**]                                                                       (4.8s @ 1.88GB)
  42.42MB (55.46%) for code area:    50,375 compilation units
  33.00MB (43.15%) for image heap:  406,521 objects and 256 resources
   1.07MB ( 1.39%) for other data
  76.49MB in total
------------------------------------------------------------------------------------------------------------------------
Top 10 origins of code area:                                Top 10 object types in image heap:
  16.02MB nativecompile-classpath-0.0.1-SNAPSHOT.jar          11.94MB byte[] for code metadata
  15.34MB java.base                                            5.69MB byte[] for java.lang.String
   4.54MB svm.jar (Native Image)                               2.95MB java.lang.String
   3.63MB java.xml                                             2.93MB java.lang.Class
 520.41kB java.management                                      1.38MB byte[] for embedded resources
 431.64kB java.rmi                                             1.03MB byte[] for reflection metadata
 284.33kB java.naming                                        818.43kB byte[] for general heap data
 248.54kB jdk.crypto.ec                                      770.39kB com.oracle.svm.core.hub.DynamicHubCompanion
 237.73kB jdk.zipfs                                          561.86kB heap alignment
 179.76kB com.oracle.svm.svm_enterprise                      468.34kB c.o.svm.core.hub.DynamicHub$ReflectionMetadata
 779.85kB for 20 more packages                                 4.52MB for 3477 more object types
                              Use '-H:+BuildReport' to create a report with more details.
------------------------------------------------------------------------------------------------------------------------
Security report:
 - Binary includes Java deserialization.
 - Use '--enable-sbom' to embed a Software Bill of Materials (SBOM) in the binary.
 - The log4j library has been detected, but the version is unavailable. Due to Log4Shell, please ensure log4j is at version 2.17.1 or later.
------------------------------------------------------------------------------------------------------------------------
Recommendations:
 PGO:  Use Profile-Guided Optimizations ('--pgo') for improved throughput.
 INIT: Adopt '--strict-image-heap' to prepare for the next GraalVM release.
 HEAP: Set max heap for improved and more predictable memory usage.
 CPU:  Enable more CPU features with '-march=native' for improved performance.
 QBM:  Use the quick build mode ('-Ob') to speed up builds during development.
------------------------------------------------------------------------------------------------------------------------
                        5.1s (7.1% of total time) in 176 GCs | Peak RSS: 5.25GB | CPU load: 7.92
------------------------------------------------------------------------------------------------------------------------
Produced artifacts:
 /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/graal_isolate.h (c_header)
 /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/graal_isolate_dynamic.h (c_header)
 /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo.dylib (shared_library)
 /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo.h (c_header)
 /Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo_dynamic.h (c_header)
========================================================================================================================
Finished generating 'springboot-demo' in 1m 11s.

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':springboot-demo:nativeRun' (type 'NativeRunTask').
  - In plugin 'org.graalvm.buildtools.gradle.NativeImagePlugin$Inject' type 'org.graalvm.buildtools.gradle.tasks.NativeRunTask' property 'image' specifies file '/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

stackTrace of gradle nativeRun
> Task :springboot-demo:nativeRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':springboot-demo:nativeRun' (type 'NativeRunTask').
  - In plugin 'org.graalvm.buildtools.gradle.NativeImagePlugin$Inject' type 'org.graalvm.buildtools.gradle.tasks.NativeRunTask' property 'image' specifies file '/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':springboot-demo:nativeRun' (type 'NativeRunTask').
  - In plugin 'org.graalvm.buildtools.gradle.NativeImagePlugin$Inject' type 'org.graalvm.buildtools.gradle.tasks.NativeRunTask' property 'image' specifies file '/Users/xljnc/IdeaProjects/jdk21-research/springboot-demo/build/native/nativeCompile/springboot-demo' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.
        at org.gradle.internal.execution.WorkValidationException$BuilderWithSummary.build(WorkValidationException.java:137)
        at org.gradle.internal.execution.WorkValidationException$BuilderWithSummary.get(WorkValidationException.java:119)
        at org.gradle.internal.execution.steps.ValidateStep.throwValidationException(ValidateStep.java:178)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:100)
        at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:55)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
        at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
        at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
        at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
        at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
        at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
        at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
        at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
        at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
        at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
        at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:145)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:134)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
        at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
        at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:78)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
        at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
        at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)

BUILD FAILED in 599ms
11 actionable tasks: 1 executed, 10 up-to-date
medoussboug commented 11 months ago

Hello, can you please give the logs and stack trace you received, also provide us with a reproducer to reproduce and investigate the issue.

xljnc commented 11 months ago

full log is added

xljnc commented 11 months ago

seems that nativeCompile ouput file doesn't have a executable file named springboot-demo which specified in gradle config file

image image
xljnc commented 11 months ago

project url: https://github.com/xljnc/jdk21-research.git

medoussboug commented 10 months ago

I understand that the reproducer is the springboot-demo right? if yes than I have found that the settings.xml file was missing in springboot-demo, along with some issues in the springboot-demo/build.gradle line 59 to 61. I used the same settings.xml in jdk21-research, I used it as springboot-demo/settings.xml, as for the lines 59 to 61 of the springboot-demo/build.gradle I removed them. Am I on the correct path? also what commands do you use for building and running the native image (just to double check).

xljnc commented 10 months ago

I understand that the reproducer is the springboot-demo right? if yes than I have found that the settings.xml file was missing in springboot-demo, along with some issues in the springboot-demo/build.gradle line 59 to 61. I used the same settings.xml in jdk21-research, I used it as springboot-demo/settings.xml, as for the lines 59 to 61 of the springboot-demo/build.gradle I removed them. Am I on the correct path? also what commands do you use for building and running the native image (just to double check).

command is gradle clean nativeCompile nativeRun, I do add a settings.gradle to springboot-demo and use springboot-demo as the root project, then I got the same result ,

image

I found that the nativeCompile output does not contains a executable file naming springboot-demo

image

just as the nativeRun command reports

image
xljnc commented 10 months ago

by the way , the demo code runs well using maven plugin , I wonder why the gradle executable file has a 'dylib' suffix ??

image

if I try to execute it , error occurs

image
ArakunrinBambam commented 9 months ago

@xljnc @medoussboug

How was this issue solved? I'm currently facing the same issue on my Ubuntu pc

medoussboug commented 9 months ago

@xljnc the reproducer is no longer available, please make sure that it is available we are still using it for testing purposes. @ArakunrinBambam you can provide a reproducer, the steps to reproduce and information about your environment (os-architecture-java version-graalvm version)

medoussboug commented 8 months ago

If you find a similar issue, please create a new ticket and we will be happy to help. This ticket is closed for surpassing inactivity period limit.