ganges
ganges

Reputation: 1

Quarkus Graalvm native image creation failing

I am trying to create a native image of Quarkus application and it is failing with

"Unknown Argument"

Here are the native-image command which is generated during build time:

C:\Program Files\graalvm-ce-java11-21.0.0.2\bin\native-image.cmd -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-DCoordinatorEnvironmentBean.transactionStatusManagerEnable=false -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8  -H:ReflectionConfigurationFiles=reflection-config.json -H:DeadlockWatchdogInterval=10 -H:+DeadlockWatchdogExitOnTimeout --report-unsupported-elements-at-runtime --initialize-at-run-time=oracle.jdbc.driver.NamedTypeAccessor\$XMLFactory,com.fasterxml.jackson.databind.util.ClassUtil,org.jboss.logmanager.ExtHandler,com.fasterxml.jackson.databind.type.SimpleType,org.jboss.logmanager.formatters.ColorMap,com.fasterxml.jackson.databind.type.TypeBase,org.jboss.logmanager.handlers.ConsoleHandler,com.fasterxml.jackson.databind.ObjectMapper,org.wildfly.common.os.Process,org.slf4j.LoggerFactory,org.jboss.logmanager.NDC,org.slf4j.impl.Slf4jLogger,org.wildfly.common.cpu.ProcessorInfo,org.jboss.logmanager.Logger org.jboss.logmanager.Level,com.fasterxml.jackson.databind.type.TypeFactory,org.jboss.logmanager.formatters.FormatStringParser,org.slf4j.impl.Slf4jLoggerFactory,org.jboss.logmanager.handlers.OutputStreamHandler,io.quarkus.bootstrap.logging.InitialConfigurator,org.jboss.logmanager.formatters.Formatters,org.jboss.logmanager.handlers.WriterHandler,org.jboss.logmanager.LogContext,org.springframework.beans.BeanUtils\$KotlinDelegate,com.gemstone.gemfire.internal.logging.LogService,oracle.jdbc.driver.SQLUtil\$XMLFactory,org.apache.geode.internal.Version,org.springframework.core.io.buffer.DataBufferUtils,org.apache.geode --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar sample-app-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:-UseServiceLoaderFeature -H:+StackTrace sample-app-runner
Error: Unknown argument: sample-app-runner

How to resolve this issue?

Upvotes: 0

Views: 899

Answers (1)

ayti
ayti

Reputation: 1

You can add quarkus.native.add-all-charsets=true to your application.properties file.

Upvotes: 0

Related Questions