Closed TheMode closed 2 years ago
This is a duplicate of #4072, which has been fixed in the recently released GraalVM 22.1.
This is a duplicate of #4072, which has been fixed in the recently released GraalVM 22.1.
Unfortunately not. Still getting same error on 22.3.0
Getting similar issue with the latest version 22.3.0 on simple Spring Boot 3.0.0 demo project:
[native-image-plugin] GraalVM Toolchain detection is enabled
[native-image-plugin] GraalVM uses toolchain detection. Selected:
[native-image-plugin] - language version: 17
[native-image-plugin] - vendor: GraalVM Community
[native-image-plugin] - runtime version: 17.0.5+8-jvmci-22.3-b08
[native-image-plugin] Native Image executable path: C:\Java\graalvm\ce-java17-22.3.0\bin\native-image.cmd
=======================================================================================================================
GraalVM Native Image: Generating demo (executable)...
========================================================================================================================
Warning: Could not resolve [Lorg.apache.logging.log4j.core.Appender; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.Appender.
Warning: Could not resolve [Lorg.apache.logging.log4j.core.config.AppenderControl; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.config.AppenderControl.
Warning: Could not resolve [Lorg.apache.logging.log4j.core.config.AppenderRef; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.config.AppenderRef.
Warning: Could not resolve [Lorg.apache.logging.log4j.core.config.LoggerConfig; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.config.LoggerConfig.
Warning: Could not resolve [Lorg.apache.logging.log4j.core.config.Property; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.config.Property.
Warning: Could not resolve [Lorg.apache.logging.log4j.core.pattern.PatternFormatter; for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.pattern.PatternFormatter.
Warning: Could not resolve jakarta.enterprise.inject.spi.BeanManager for reflection configuration. Reason: java.lang.ClassNotFoundException: jakarta.enterprise.inject.spi.BeanManager.
Warning: Could not resolve org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy.
Warning: Could not resolve org.wildfly.transaction.client.ContextTransactionManager for reflection configuration. Reason: java.lang.ClassNotFoundException: org.wildfly.transaction.client.ContextTransactionManager.
Warning: Could not resolve org.wildfly.transaction.client.ContextTransactionManager for reflection configuration. Reason: java.lang.ClassNotFoundException: org.wildfly.transaction.client.ContextTransactionManager.
Warning: Could not resolve org.wildfly.transaction.client.LocalUserTransaction for reflection configuration. Reason: java.lang.ClassNotFoundException: org.wildfly.transaction.client.LocalUserTransaction.
Warning: Could not resolve org.jboss.logmanager.LogManager for reflection configuration. Reason: java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager.
Warning: Method com.zaxxer.hikari.HikariConfig.getScheduledExecutorService() not found.
Warning: Method com.zaxxer.hikari.HikariConfig.isInitializationFailFast() not found.
Warning: Method com.zaxxer.hikari.HikariConfig.isJdbc4ConnectionTest() not found.
Warning: Method com.zaxxer.hikari.HikariConfig.setInitializationFailFast(boolean) not found.
Warning: Method com.zaxxer.hikari.HikariConfig.setJdbc4ConnectionTest(boolean) not found.
Warning: Method com.zaxxer.hikari.HikariConfig.setScheduledExecutorService(ScheduledThreadPoolExecutor) not found.
Warning: Could not resolve com.sun.el.ExpressionFactoryImpl for reflection configuration. Reason: java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl.
Warning: Could not resolve groovy.grape.GrabAnnotationTransformation for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation.
Warning: Could not resolve groovy.lang.Script for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.lang.Script.
Warning: Could not resolve groovy.lang.Script for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.lang.Script.
Warning: Could not resolve groovyjarjarantlr.CommonToken for reflection configuration. Reason: java.lang.ClassNotFoundException: groovyjarjarantlr.CommonToken.
Warning: Could not resolve javafx.beans.value.ObservableValue for reflection configuration. Reason: java.lang.ClassNotFoundException: javafx.beans.value.ObservableValue.
Warning: Could not resolve javax.money.MonetaryAmount for reflection configuration. Reason: java.lang.ClassNotFoundException: javax.money.MonetaryAmount.
Warning: Could not resolve org.codehaus.groovy.antlr.GroovySourceAST for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.antlr.GroovySourceAST.
Warning: Could not resolve org.codehaus.groovy.ast.builder.AstBuilderTransformation for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.ast.builder.AstBuilderTransformation.
Warning: Could not resolve org.codehaus.groovy.runtime.ScriptBytecodeAdapter for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.ScriptBytecodeAdapter.
Warning: Could not resolve org.glassfish.expressly.ValueExpressionImpl for reflection configuration. Reason: java.lang.ClassNotFoundException: org.glassfish.expressly.ValueExpressionImpl.
Warning: Could not resolve org.glassfish.expressly.parser.AstValue for reflection configuration. Reason: java.lang.ClassNotFoundException: org.glassfish.expressly.parser.AstValue.
Warning: Could not resolve org.joda.time.ReadableInstant for reflection configuration. Reason: java.lang.ClassNotFoundException: org.joda.time.ReadableInstant.
Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
Warning: Could not resolve org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.devtools.env.DevToolsPropertyDefaultsPostProcessor.
Warning: Could not resolve org.springframework.boot.devtools.restart.RestartApplicationListener for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.devtools.restart.RestartApplicationListener.
Warning: Could not resolve org.springframework.boot.devtools.logger.DevToolsLogFactory$Listener for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.devtools.logger.DevToolsLogFactory$Listener.
Warning: Could not resolve org.springframework.boot.devtools.restart.RestartScopeInitializer for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.devtools.restart.RestartScopeInitializer.
Warning: Could not resolve org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.
[1/7] Initializing... (11.0s @ 0.31GB
Version info: 'GraalVM 22.3.0 Java 17 CE'
Java version info: '17.0.5+8-jvmci-22.3-b08'
C compiler: cl.exe (microsoft, x64, 19.34.31935)
Garbage collector: Serial GC
1 user-specific feature(s)
- org.springframework.aot.nativex.feature.PreComputeFieldFeature
The bundle named: org.apache.el.Messages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
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#imageCode 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.format.support.DefaultFormattingConversionService#jsr354Present set to false at build time
Field org.springframework.cglib.core.AbstractClassGenerator#imageCode set to true at build time
Field org.springframework.boot.logging.log4j2.Log4J2LoggingSystem$Factory#PRESENT 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 true 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.boot.logging.logback.LogbackLoggingSystem$Factory#PRESENT set to true at build time
Field org.springframework.data.util.NullableWrapperConverters#GUAVA_PRESENT set to false at build time
Field org.springframework.data.util.NullableWrapperConverters#SCALA_PRESENT set to false at build time
Field org.springframework.data.util.NullableWrapperConverters#VAVR_PRESENT set to false at build time
Field org.springframework.boot.logging.java.JavaLoggingSystem$Factory#PRESENT set to true 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.data.repository.util.QueryExecutionConverters#VAVR_PRESENT set to false at build time
Field org.springframework.security.config.annotation.web.builders.HttpSecurity#mvcPresent set to true at build time
Field org.springframework.boot.logging.logback.LogbackLoggingSystemProperties#JBOSS_LOGGING_PRESENT set to true at build time
Field org.springframework.data.util.ReactiveWrappers#PROJECT_REACTOR_PRESENT set to false at build time
Field org.springframework.data.util.ReactiveWrappers#RXJAVA3_PRESENT set to false at build time
Field org.springframework.data.util.ReactiveWrappers#KOTLIN_COROUTINES_PRESENT set to false at build time
Field org.springframework.data.util.ReactiveWrappers#MUTINY_PRESENT set to false at build time
Field org.springframework.data.repository.util.ReactiveWrapperConverters#RXJAVA3_PRESENT set to false at build time
Field org.springframework.data.repository.util.ReactiveWrapperConverters#REACTOR_PRESENT set to false at build time
Field org.springframework.data.repository.util.ReactiveWrapperConverters#KOTLIN_COROUTNES_PRESENT set to false at build time
Field org.springframework.data.repository.util.ReactiveWrapperConverters#MUTINY_PRESENT set to false at build time
Field org.springframework.web.context.support.StandardServletEnvironment#jndiPresent set to true 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.web.servlet.view.InternalResourceViewResolver#jstlPresent set to false at build time
Field org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter#jaxb2Present set to true 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.transaction.interceptor.TransactionAspectSupport#vavrPresent set to false at build time
Field org.springframework.transaction.interceptor.TransactionAspectSupport#reactiveStreamsPresent set to false at build time
Field org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator#USER_PROVIDED_ERROR_CODES_FILE_PRESENT set to false at build time
Field org.springframework.context.event.ApplicationListenerMethodAdapter#reactiveStreamsPresent set to false at build time
Field org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry#mvcPresent set to true at build time
Field org.springframework.boot.jdbc.DataSourceUnwrapper#DELEGATING_DATA_SOURCE_PRESENT set to true at build time
Field org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#jta12Present set to true at build time
Field org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#ejb3Present set to false at build time
Field org.springframework.boot.autoconfigure.web.format.WebConversionService#JSR_354_PRESENT set to false at build time
Field org.springframework.web.servlet.config.annotation.ResourceChainRegistration#isWebJarsAssetLocatorPresent set to true at build time
Field org.springframework.web.servlet.mvc.method.annotation.ReactiveTypeHandler#isContextPropagationPresent 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.web.client.RestTemplate#romePresent set to false at build time
Field org.springframework.web.client.RestTemplate#jaxb2Present set to true 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.instrument.classloading.InstrumentationLoadTimeWeaver#AGENT_CLASS_PRESENT set to false at build time
Field org.springframework.boot.actuate.endpoint.invoker.cache.CachingOperationInvoker#IS_REACTOR_PRESENT set to false at build time
Field org.springframework.boot.actuate.endpoint.web.annotation.DiscoveredWebOperation#REACTIVE_STREAMS_PRESENT set to false at build time
Field org.springframework.boot.actuate.endpoint.invoke.reflect.OperationMethodParameter#jsr305Present set to false at build time
Field org.springframework.security.oauth2.core.http.converter.HttpMessageConverters#jackson2Present set to true at build time
Field org.springframework.security.oauth2.core.http.converter.HttpMessageConverters#gsonPresent set to false at build time
Field org.springframework.security.oauth2.core.http.converter.HttpMessageConverters#jsonbPresent set to false at build time
Field org.springframework.web.servlet.support.RequestContext#jstlPresent set to false at build time
[2/7] Performing analysis... [**********] (52.9s @ 4.60GB
35,893 (93.93%) of 38,212 classes reachable
60,388 (71.48%) of 84,478 fields reachable
169,149 (62.52%) of 270,536 methods reachable
1,893 classes, 2,056 fields, and 11,470 methods registered for reflection
85 classes, 78 fields, and 70 methods registered for JNI access
5 native libraries: crypt32, ncrypt, psapi, version, winhttp
[3/7] Building universe... (7.1s @ 3.03GB)
[4/7] Parsing methods... [**] (2.5s @ 3.18GB)
[5/7] Inlining methods... [****] (1.7s @ 4.68GB)
[6/7] Compiling methods... [****] (16.7s @ 5.39GB)
[7/7] Creating image... (0.0s @ 6.15GB)
Fatal error: com.oracle.svm.core.util.VMError$HostedError: should not reach here
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:64)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.makeShimDLL(JNIRegistrationSupport.java:273)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.makeShimDLLs(JNIRegistrationSupport.java:247)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.afterImageWrite(JNIRegistrationSupport.java:192)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$doRun$8(NativeImageGenerator.java:724)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:85)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:724)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
------------------------------------------------------------------------------------------------------------------------
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:580)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
11.3s (10.7% of total time) in 63 GCs | Peak RSS: 8.83GB | CPU load: 5.12
------------------------------------------------------------------------------------------------------------------------
Produced artifacts:
H:\projects\SpringBoot3\demo\build\native\nativeCompile\awt.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\demo.build_artifacts.txt (txt)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\demo.exe (executable)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\jaas.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\javaaccessbridge.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\javajpeg.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\jawt.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\lcms.dll (jdk_lib)
H:\projects\SpringBoot3\demo\build\native\nativeCompile\w2k_lsa_auth.dll (jdk_lib)
========================================================================================================================
Failed generating 'demo' after 1m 44s.
Error: Image build request failed with exit status 1
> Task :nativeCompile FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':nativeCompile'.
> Process 'command 'C:\Java\graalvm\ce-java17-22.3.0\bin\native-image.cmd'' finished with non-zero exit value 1
I'm getting this same issue and not using Spring, it's confusing because I got this error and the binaries were generated?!
Version info: 'GraalVM 22.3.1 Java 19 CE'
Java version info: '19.0.2+7-jvmci-22.3-b12'
C compiler: cl.exe (microsoft, x64, 19.34.31942)
Garbage collector: Serial GC
[2/7] Performing analysis... [*******] (107.6s @ 1.41GB)
12,084 (89.[67](https://github.com/mageddo/dns-proxy-server/actions/runs/4411856810/jobs/7730831284#step:6:68)%) of 13,476 classes reachable
20,489 (65.14%) of 31,455 fields reachable
64,097 (61.21%) of 104,716 methods reachable
757 classes, 1,730 fields, and 6,160 methods registered for reflection
120 classes, 95 fields, and 1,753 methods registered for JNI access
4 native libraries: crypt32, ncrypt, version, winhttp
[3/7] Building universe... (15.0s @ 2.27GB)
[4/7] Parsing methods... [***] (11.7s @ 1.54GB)
[5/7] Inlining methods... [***] (7.0s @ 1.90GB)
[6/7] Compiling methods... [*********] (92.3s @ 1.[69](https://github.com/mageddo/dns-proxy-server/actions/runs/4411856810/jobs/7730831284#step:6:70)GB)
[7/7] Creating image... (0.0s @ 2.34GB)
------------------------------------------------------------------------------------------------------------------------
Fatal error: com.oracle.svm.core.util.VMError$HostedError: should not reach here
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:64)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.makeShimDLL(JNIRegistrationSupport.java:273)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.makeShimDLLs(JNIRegistrationSupport.java:247)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.jdk.JNIRegistrationSupport.afterImageWrite(JNIRegistrationSupport.java:192)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$doRun$8(NativeImageGenerator.java:[72](https://github.com/mageddo/dns-proxy-server/actions/runs/4411856810/jobs/7730831284#step:6:73)4)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:85)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:724)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:5[80](https://github.com/mageddo/dns-proxy-server/actions/runs/4411856810/jobs/7730831284#step:6:81))
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
14.4s (4.8% of total time) in 56 GCs | Peak RSS: 3.51GB | CPU load: 1.65
------------------------------------------------------------------------------------------------------------------------
Produced artifacts:
D:\a\dns-proxy-server\dns-proxy-server\tmp\awt.dll (jdk_lib)
D:\a\dns-proxy-server\dns-proxy-server\tmp\dns-proxy-server.build_artifacts.txt (txt)
D:\a\dns-proxy-server\dns-proxy-server\tmp\dns-proxy-server.exe (executable)
See the logs https://github.com/mageddo/dns-proxy-server/actions/runs/4411856810/jobs/7730831284
Related to #5008
Realized that native-image failed on generating the following DLLs , not sure if they are required , searching about that right now
D:\a\dns-proxy-server\dns-proxy-server\java.dll (jdk_lib_shim)
D:\a\dns-proxy-server\dns-proxy-server\jvm.dll (jdk_lib_shim)
Describe the issue Building a jar end up with the exception
VMError$HostedError: should not reach here
. Log indicate that some constructors present in my reflection config file are not present (which in my opinion, should be silently ignored even if it is the case)Code is available here
Steps to reproduce the issue
native-image -jar arena.jar --allow-incomplete-classpath
Describe GraalVM and your environment:
More details