jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.38k stars 155 forks source link

ksqldb client will not work in native mode #686

Open KMUS opened 3 years ago

KMUS commented 3 years ago

Using this configuration with a normal project setup for Maven works in jvm and native mode. This fail only with jbang.

jbang cache clear
jbang --verbose EventResource.java

This works like a charme.

jbang cache clear
jbang --verbose --native EventResource.java

Will fail with the exception mentioned below.

application.properties

quarkus.banner.path = banner.txt

quarkus.datasource.db-kind = postgresql
quarkus.datasource.username = user
quarkus.datasource.password = password
quarkus.datasource.reactive.url = postgresql://localhost:5432/database

quarkus.http.cors=true
quarkus.http.cors.origins=*
quarkus.http.cors.headers=accept, origin, authorization, content-type, x-requested-with
quarkus.http.cors.methods=GET, OPTIONS

quarkus.native.additional-build-args =\
-H:+JNI,\
-H:EnableURLProtocols=https,\
-H:+AllowIncompleteClasspath,\
-H:ReflectionConfigurationFiles=reflect-config.json,\
--no-fallback,\
--initialize-at-run-time=org.apache.commons.logging.impl.Log4JLogger,\
--initialize-at-build-time,\
-H:EnableURLProtocols=https,\
--enable-all-security-services

reflect-config.json


[
{
  "name":"io.confluent.ksql.rest.entity.QueryResponseMetadata",
  "allDeclaredFields":true,
  "allDeclaredMethods":true,
  "allDeclaredConstructors":true
}
]
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.quarkus:quarkus-bom:1.11.0.Final@pom
//DEPS io.quarkus:quarkus-scheduler
//DEPS io.quarkus:quarkus-smallrye-reactive-messaging-kafka
//DEPS io.quarkus:quarkus-resteasy-reactive-jackson
//DEPS io.quarkus:quarkus-reactive-pg-client
//DEPS org.projectlombok:lombok:1.18.12
//DEPS io.confluent.ksql:ksqldb-api-client:6.0.0
//SOURCES **/*.java
//FILES application.properties=../../../../resources/application.properties
//FILES reflect-config.json=../../../../resources/reflect-config.json
//FILES banner.txt=../../../../resources/banner.txt
//REPOS repo1=http://mvn.foobar.net
//REPOS repo2=https://repo.maven.apache.org/maven2/
//REPOS confluent=http://packages.confluent.io/maven/
//JAVAC_OPTIONS -parameters
//JAVA_OPTIONS -Djava.util.logging.manager=org.jboss.logmanager.LogManager

package net.foobar.event;

import io.smallrye.mutiny.Multi;
import io.vertx.mutiny.pgclient.PgPool;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import net.foobar.event.model.AssetlogKafkaModel;
import net.foobar.event.model.TestModel;
import org.jboss.resteasy.reactive.RestSseElementType;

@Path("events")
@ApplicationScoped
public class EventResource {

    @Inject
    PgPool client;

    @GET
    @Path("test")
    @Produces(MediaType.SERVER_SENT_EVENTS)
    @RestSseElementType(MediaType.APPLICATION_JSON)
    public Multi<TestModel> test() {
        return client.query("SELECT * FROM kafka_event_test").execute()
            .onItem().transformToMulti(set -> Multi.createFrom().iterable(set))
            .onItem().transform(AssetlogKafkaModel::from2);
    }
}
INFO: JBoss Threads version 3.2.0.Final
Jan 26, 2021 7:08:18 PM io.quarkus.deployment.pkg.steps.JarResultBuildStep buildNativeImageThinJar
INFO: Building native image source jar: /tmp/quarkus-jbang8269392191889606624/quarkus-application-native-image-source-jar/quarkus-application-runner.jar
Jan 26, 2021 7:08:18 PM io.quarkus.deployment.pkg.steps.NativeImageBuildStep build
INFO: Building native image from /tmp/quarkus-jbang8269392191889606624/quarkus-application-native-image-source-jar/quarkus-application-runner.jar
Jan 26, 2021 7:08:18 PM io.quarkus.deployment.pkg.steps.NativeImageBuildStep checkGraalVMVersion
INFO: Running Quarkus native-image plugin on GraalVM Version 20.3.0 (Java Version 11.0.9+10-jvmci-20.3-b06)
Jan 26, 2021 7:08:18 PM io.quarkus.deployment.pkg.steps.NativeImageBuildStep build
INFO: /opt/java/sdk/graalvm/bin/native-image -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -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-Dfile.encoding=UTF-8 -H:+JNI -H:EnableURLProtocols=https -H:+AllowIncompleteClasspath -H:ReflectionConfigurationFiles=reflect-config.json --no-fallback --initialize-at-run-time=org.apache.commons.logging.impl.Log4JLogger --initialize-at-build-time -H:EnableURLProtocols=https --enable-all-security-services --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-application-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http,https --enable-all-security-services -H:NativeLinkerOption=-no-pie --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-application-runner
[quarkus-application-runner:31457]    classlist:   7,213.76 ms,  1.19 GB
[quarkus-application-runner:31457]        (cap):   1,391.94 ms,  1.19 GB
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/quarkus-jbang8269392191889606624/quarkus-application-native-image-source-jar/lib/org.jboss.slf4j.slf4j-jboss-logmanager-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/quarkus-jbang8269392191889606624/quarkus-application-native-image-source-jar/lib/org.slf4j.slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Slf4jLoggerFactory]
[quarkus-application-runner:31457]        setup:   3,306.43 ms,  1.19 GB
19:08:47,833 INFO  [org.jbo.threads] JBoss Threads version 3.2.0.Final
[quarkus-application-runner:31457]     (clinit):     890.04 ms,  4.26 GB
[quarkus-application-runner:31457]   (typeflow):  21,171.37 ms,  4.26 GB
[quarkus-application-runner:31457]    (objects):  40,352.45 ms,  4.26 GB
[quarkus-application-runner:31457]   (features):   1,132.77 ms,  4.26 GB
[quarkus-application-runner:31457]     analysis:  66,042.71 ms,  4.26 GB
Error: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

com.oracle.svm.core.util.UserError$UserException: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

        at com.oracle.svm.core.util.UserError.abort(UserError.java:82)
        at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:217)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:768)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:558)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:471)
        at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c28f8c40.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

        at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:129)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:765)
        ... 8 more
Error: Image build request failed with exit status 1
[jbang] Deleting folder /home/user/.jbang/cache/jars/EventResource.java.74719be416f47c10157f543204cb55cc19b2ca9caf5af9db05e4789226689ad2
[jbang] [ERROR] Issue running postBuild()
dev.jbang.ExitException: Issue running postBuild()
        at dev.jbang.IntegrationManager.runIntegration(IntegrationManager.java:134)
        at dev.jbang.cli.BaseBuildCommand.buildJar(BaseBuildCommand.java:214)
        at dev.jbang.cli.BaseBuildCommand.build(BaseBuildCommand.java:137)
        at dev.jbang.cli.Run.prepareArtifacts(Run.java:83)
        at dev.jbang.cli.Run.doCall(Run.java:71)
        at dev.jbang.cli.BaseCommand.call(BaseCommand.java:85)
        at dev.jbang.cli.BaseCommand.call(BaseCommand.java:12)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at dev.jbang.Main.main(Main.java:14)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at dev.jbang.IntegrationManager.runIntegration(IntegrationManager.java:98)
        ... 14 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at io.quarkus.launcher.JBangIntegration.postBuild(JBangIntegration.java:129)
        ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.launcher.JBangIntegration.postBuild(JBangIntegration.java:121)
        ... 19 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.bootstrap.jbang.JBangBuilderImpl.postBuild(JBangBuilderImpl.java:86)
        ... 24 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:131)
        at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:81)
        at io.quarkus.bootstrap.jbang.JBangBuilderImpl.postBuild(JBangBuilderImpl.java:83)
        ... 24 more
Caused by: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:124)
        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:40)
        at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:128)
        ... 26 more
Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.builder.Execution.run(Execution.java:116)
        at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
        at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:148)
        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:101)
        ... 28 more
Caused by: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more
[jbang] If you believe this a bug in jbang open issue at https://github.com/jbangdev/jbang/issues
maxandersen commented 3 years ago

same issue as #685 - not able to yet reproduce as example is incomplete.

KMUS commented 3 years ago

same issue as #685 - not able to yet reproduce as example is incomplete.

For files application.properties and reflect-config.json, see above.

sample file

///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.quarkus:quarkus-bom:1.11.0.Final@pom
//DEPS io.quarkus:quarkus-scheduler
//DEPS io.quarkus:quarkus-smallrye-reactive-messaging-kafka
//DEPS io.quarkus:quarkus-resteasy-reactive-jackson
//DEPS io.quarkus:quarkus-reactive-pg-client
//DEPS org.projectlombok:lombok:1.18.12
//DEPS io.confluent.ksql:ksqldb-api-client:6.0.0
//SOURCES **/*.java
//FILES application.properties
//FILES reflect-config.json
//REPOS repo1=http://mvn.foobar.net
//REPOS repo2=https://repo.maven.apache.org/maven2/
//REPOS confluent=http://packages.confluent.io/maven/
//JAVAC_OPTIONS -parameters
//JAVA_OPTIONS -Djava.util.logging.manager=org.jboss.logmanager.LogManager

package net.foobar.event;

import io.smallrye.mutiny.Multi;
import io.vertx.mutiny.pgclient.PgPool;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.jboss.resteasy.reactive.RestSseElementType;

@Path("events")
@ApplicationScoped
public class EventResource {

    @Inject
    PgPool client;

    @GET
    @Path("test")
    public String foobar() {
        return "foobar";
    }
}
java --version

openjdk 11.0.9 2020-10-20
OpenJDK Runtime Environment GraalVM CE 20.3.0 (build 11.0.9+10-jvmci-20.3-b06)
OpenJDK 64-Bit Server VM GraalVM CE 20.3.0 (build 11.0.9+10-jvmci-20.3-b06, mixed mode, sharing)

jbang --verbose --native EventResource.java

reflect-config.json is picked up correctly as stated here. -H:ReflectionConfigurationFiles=reflect-config.json

[jbang] System Java version detected as 11
[jbang] System Java version matches requested version 11
[jbang] Resolving dependencies...
[jbang] Loading MavenCoordinate [io.quarkus:quarkus-bom:pom:1.11.0.Final]
[jbang]     Resolving io.quarkus:quarkus-scheduler...Done
[jbang]     Resolving io.quarkus:quarkus-smallrye-reactive-messaging-kafka...Done
[jbang]     Resolving io.quarkus:quarkus-resteasy-reactive-jackson...Done
[jbang]     Resolving io.quarkus:quarkus-reactive-pg-client...Done
[jbang]     Resolving org.projectlombok:lombok:1.18.12...Done
[jbang]     Resolving io.confluent.ksql:ksqldb-api-client:6.0.0...Done
[jbang] Dependencies resolved
[jbang] Copying ../../../../resources/application.properties to /home/user/.jbang/cache/jars/EventResource.java.12a1ea511b7af9b76c48cdf85c01737f7cc193b42a9192e469e49b8065e712fc/application.properties
[jbang] Copying ../../../../resources/reflect-config.json to /home/user/.jbang/cache/jars/EventResource.java.12a1ea511b7af9b76c48cdf85c01737f7cc193b42a9192e469e49b8065e712fc/reflect-config.json
[jbang] Building jar...
[jbang] compile: /opt/java/sdk/graalvm/bin/javac -parameters -classpath /home/user/.m2/repository/io/quarkus/quarkus-scheduler/1.11.0.Final/quarkus-scheduler-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-arc/1.11.0.Final/quarkus-arc-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/arc/arc/1.11.0.Final/arc-1.11.0.Final.jar:/home/user/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar:/home/user/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar:/home/user/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar:/home/user/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar:/home/user/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.jar:/home/user/.m2/repository/org/jboss/logging/jboss-logging/3.4.1.Final/jboss-logging-3.4.1.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-core/1.11.0.Final/quarkus-core-1.11.0.Final.jar:/home/user/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar:/home/user/.m2/repository/io/quarkus/quarkus-ide-launcher/1.11.0.Final/quarkus-ide-launcher-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-development-mode-spi/1.11.0.Final/quarkus-development-mode-spi-1.11.0.Final.jar:/home/user/.m2/repository/io/smallrye/config/smallrye-config/1.10.0/smallrye-config-1.10.0.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-annotation/1.5.0/smallrye-common-annotation-1.5.0.jar:/home/user/.m2/repository/io/smallrye/config/smallrye-config-common/1.10.0/smallrye-config-common-1.10.0.jar:/home/user/.m2/repository/org/eclipse/microprofile/config/microprofile-config-api/1.4/microprofile-config-api-1.4.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-expression/1.5.0/smallrye-common-expression-1.5.0.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-function/1.5.0/smallrye-common-function-1.5.0.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-constraint/1.5.0/smallrye-common-constraint-1.5.0.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-classloader/1.5.0/smallrye-common-classloader-1.5.0.jar:/home/user/.m2/repository/org/jboss/logmanager/jboss-logmanager-embedded/1.0.6/jboss-logmanager-embedded-1.0.6.jar:/home/user/.m2/repository/org/jboss/logging/jboss-logging-annotations/2.2.0.Final/jboss-logging-annotations-2.2.0.Final.jar:/home/user/.m2/repository/org/jboss/threads/jboss-threads/3.2.0.Final/jboss-threads-3.2.0.Final.jar:/home/user/.m2/repository/org/graalvm/sdk/graal-sdk/20.3.0/graal-sdk-20.3.0.jar:/home/user/.m2/repository/org/wildfly/common/wildfly-common/1.5.4.Final-format-001/wildfly-common-1.5.4.Final-format-001.jar:/home/user/.m2/repository/io/quarkus/quarkus-bootstrap-runner/1.11.0.Final/quarkus-bootstrap-runner-1.11.0.Final.jar:/home/user/.m2/repository/io/smallrye/common/smallrye-common-io/1.5.0/smallrye-common-io-1.5.0.jar:/home/user/.m2/repository/org/eclipse/microprofile/context-propagation/microprofile-context-propagation-api/1.0.1/microprofile-context-propagation-api-1.0.1.jar:/home/user/.m2/repository/com/cronutils/cron-utils/9.1.3/cron-utils-9.1.3.jar:/home/user/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/home/user/.m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar:/home/user/.m2/repository/org/jboss/slf4j/slf4j-jboss-logmanager/1.1.0.Final/slf4j-jboss-logmanager-1.1.0.Final.jar:/home/user/.m2/repository/org/glassfish/jakarta.el/3.0.3/jakarta.el-3.0.3.jar:/home/user/.m2/repository/io/quarkus/quarkus-smallrye-reactive-messaging-kafka/1.11.0.Final/quarkus-smallrye-reactive-messaging-kafka-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-kafka-client/1.11.0.Final/quarkus-kafka-client-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-caffeine/1.11.0.Final/quarkus-caffeine-1.11.0.Final.jar:/home/user/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.8.8/caffeine-2.8.8.jar:/home/user/.m2/repository/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-reactive-messaging-kafka/2.7.1/smallrye-reactive-messaging-kafka-2.7.1.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-mutiny-vertx-kafka-client/1.3.0/smallrye-mutiny-vertx-kafka-client-1.3.0.jar:/home/user/.m2/repository/org/apache/zookeeper/zookeeper/3.5.7/zookeeper-3.5.7.jar:/home/user/.m2/repository/org/apache/zookeeper/zookeeper-jute/3.5.7/zookeeper-jute-3.5.7.jar:/home/user/.m2/repository/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/home/user/.m2/repository/io/netty/netty-transport-native-epoll/4.1.49.Final/netty-transport-native-epoll-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.49.Final/netty-transport-native-unix-common-4.1.49.Final.jar:/home/user/.m2/repository/io/opentelemetry/opentelemetry-api/0.9.1/opentelemetry-api-0.9.1.jar:/home/user/.m2/repository/io/opentelemetry/opentelemetry-context-prop/0.9.1/opentelemetry-context-prop-0.9.1.jar:/home/user/.m2/repository/io/grpc/grpc-context/1.34.0/grpc-context-1.34.0.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-reactive-converter-api/1.3.0/smallrye-reactive-converter-api-1.3.0.jar:/home/user/.m2/repository/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar:/home/user/.m2/repository/io/smallrye/reactive/mutiny/0.12.5/mutiny-0.12.5.jar:/home/user/.m2/repository/io/quarkus/quarkus-jackson/1.11.0.Final/quarkus-jackson-1.11.0.Final.jar:/home/user/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.11.3/jackson-databind-2.11.3.jar:/home/user/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.11.3/jackson-annotations-2.11.3.jar:/home/user/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.11.3/jackson-core-2.11.3.jar:/home/user/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.11.3/jackson-datatype-jsr310-2.11.3.jar:/home/user/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.11.3/jackson-datatype-jdk8-2.11.3.jar:/home/user/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.11.3/jackson-module-parameter-names-2.11.3.jar:/home/user/.m2/repository/org/apache/kafka/kafka-clients/2.5.0/kafka-clients-2.5.0.jar:/home/user/.m2/repository/com/github/luben/zstd-jni/1.4.4-7/zstd-jni-1.4.4-7.jar:/home/user/.m2/repository/org/lz4/lz4-java/1.7.1/lz4-java-1.7.1.jar:/home/user/.m2/repository/org/xerial/snappy/snappy-java/1.1.7.3/snappy-java-1.1.7.3.jar:/home/user/.m2/repository/io/vertx/vertx-kafka-client/3.9.5/vertx-kafka-client-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-core/3.9.5/vertx-core-3.9.5.jar:/home/user/.m2/repository/io/netty/netty-common/4.1.49.Final/netty-common-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-buffer/4.1.49.Final/netty-buffer-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-transport/4.1.49.Final/netty-transport-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-handler/4.1.49.Final/netty-handler-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-codec/4.1.49.Final/netty-codec-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-handler-proxy/4.1.49.Final/netty-handler-proxy-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-codec-socks/4.1.49.Final/netty-codec-socks-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-codec-http/4.1.49.Final/netty-codec-http-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-codec-http2/4.1.49.Final/netty-codec-http2-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-resolver/4.1.49.Final/netty-resolver-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-resolver-dns/4.1.49.Final/netty-resolver-dns-4.1.49.Final.jar:/home/user/.m2/repository/io/netty/netty-codec-dns/4.1.49.Final/netty-codec-dns-4.1.49.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-smallrye-reactive-messaging/1.11.0.Final/quarkus-smallrye-reactive-messaging-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-mutiny-reactive-streams-operators/1.11.0.Final/quarkus-mutiny-reactive-streams-operators-1.11.0.Final.jar:/home/user/.m2/repository/org/eclipse/microprofile/reactive-streams-operators/microprofile-reactive-streams-operators-api/1.0.1/microprofile-reactive-streams-operators-api-1.0.1.jar:/home/user/.m2/repository/org/eclipse/microprofile/reactive-streams-operators/microprofile-reactive-streams-operators-core/1.0.1/microprofile-reactive-streams-operators-core-1.0.1.jar:/home/user/.m2/repository/io/quarkus/quarkus-mutiny/1.11.0.Final/quarkus-mutiny-1.11.0.Final.jar:/home/user/.m2/repository/io/smallrye/reactive/mutiny-reactive-streams-operators/0.12.5/mutiny-reactive-streams-operators-0.12.5.jar:/home/user/.m2/repository/io/smallrye/reactive/mutiny-context-propagation/0.12.5/mutiny-context-propagation-0.12.5.jar:/home/user/.m2/repository/io/quarkus/quarkus-smallrye-context-propagation/1.11.0.Final/quarkus-smallrye-context-propagation-1.11.0.Final.jar:/home/user/.m2/repository/io/smallrye/smallrye-context-propagation/1.0.19/smallrye-context-propagation-1.0.19.jar:/home/user/.m2/repository/io/smallrye/smallrye-context-propagation-api/1.0.19/smallrye-context-propagation-api-1.0.19.jar:/home/user/.m2/repository/io/reactivex/rxjava2/rxjava/2.2.20/rxjava-2.2.20.jar:/home/user/.m2/repository/io/quarkus/quarkus-vertx/1.11.0.Final/quarkus-vertx-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-netty/1.11.0.Final/quarkus-netty-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-vertx-core/1.11.0.Final/quarkus-vertx-core-1.11.0.Final.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-axle-generator/1.3.0/smallrye-axle-generator-1.3.0.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-axle-core/1.3.0/smallrye-axle-core-1.3.0.jar:/home/user/.m2/repository/io/vertx/vertx-rx-java2/3.9.5/vertx-rx-java2-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-rx-gen/3.9.5/vertx-rx-gen-3.9.5.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-reactive-messaging-health/2.7.1/smallrye-reactive-messaging-health-2.7.1.jar:/home/user/.m2/repository/org/eclipse/microprofile/health/microprofile-health-api/2.2/microprofile-health-api-2.2.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-reactive-messaging-provider/2.7.1/smallrye-reactive-messaging-provider-2.7.1.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-reactive-messaging-api/2.7.1/smallrye-reactive-messaging-api-2.7.1.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-mutiny-vertx-core/1.3.0/smallrye-mutiny-vertx-core-1.3.0.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-mutiny-vertx-runtime/1.3.0/smallrye-mutiny-vertx-runtime-1.3.0.jar:/home/user/.m2/repository/io/smallrye/reactive/vertx-mutiny-generator/1.3.0/vertx-mutiny-generator-1.3.0.jar:/home/user/.m2/repository/io/vertx/vertx-codegen/3.9.5/vertx-codegen-3.9.5.jar:/home/user/.m2/repository/org/mvel/mvel2/2.3.1.Final/mvel2-2.3.1.Final.jar:/home/user/.m2/repository/org/jboss/jandex/2.2.2.Final/jandex-2.2.2.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-resteasy-reactive-jackson/1.11.0.Final/quarkus-resteasy-reactive-jackson-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-resteasy-reactive/1.11.0.Final/quarkus-resteasy-reactive-1.11.0.Final.jar:/home/user/.m2/repository/org/jboss/spec/javax/ws/rs/jboss-jaxrs-api_2.1_spec/2.0.1.Final/jboss-jaxrs-api_2.1_spec-2.0.1.Final.jar:/home/user/.m2/repository/io/quarkus/resteasy/reactive/resteasy-reactive-vertx/1.11.0.Final/resteasy-reactive-vertx-1.11.0.Final.jar:/home/user/.m2/repository/io/vertx/vertx-web/3.9.5/vertx-web-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-web-common/3.9.5/vertx-web-common-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-auth-common/3.9.5/vertx-auth-common-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-bridge-common/3.9.5/vertx-bridge-common-3.9.5.jar:/home/user/.m2/repository/io/quarkus/resteasy/reactive/resteasy-reactive/1.11.0.Final/resteasy-reactive-1.11.0.Final.jar:/home/user/.m2/repository/org/jboss/logging/commons-logging-jboss-logging/1.0.0.Final/commons-logging-jboss-logging-1.0.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-resteasy-reactive-common/1.11.0.Final/quarkus-resteasy-reactive-common-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/resteasy/reactive/resteasy-reactive-common/1.11.0.Final/resteasy-reactive-common-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-vertx-http/1.11.0.Final/quarkus-vertx-http-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-security-runtime-spi/1.11.0.Final/quarkus-security-runtime-spi-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-vertx-http-dev-console-runtime-spi/1.11.0.Final/quarkus-vertx-http-dev-console-runtime-spi-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/security/quarkus-security/1.1.3.Final/quarkus-security-1.1.3.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-jsonp/1.11.0.Final/quarkus-jsonp-1.11.0.Final.jar:/home/user/.m2/repository/org/glassfish/jakarta.json/1.1.6/jakarta.json-1.1.6.jar:/home/user/.m2/repository/io/quarkus/quarkus-reactive-pg-client/1.11.0.Final/quarkus-reactive-pg-client-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-reactive-datasource/1.11.0.Final/quarkus-reactive-datasource-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-datasource/1.11.0.Final/quarkus-datasource-1.11.0.Final.jar:/home/user/.m2/repository/io/quarkus/quarkus-datasource-common/1.11.0.Final/quarkus-datasource-common-1.11.0.Final.jar:/home/user/.m2/repository/io/vertx/vertx-sql-client/3.9.5/vertx-sql-client-3.9.5.jar:/home/user/.m2/repository/io/vertx/vertx-pg-client/3.9.5/vertx-pg-client-3.9.5.jar:/home/user/.m2/repository/com/ongres/scram/client/2.1/client-2.1.jar:/home/user/.m2/repository/com/ongres/scram/common/2.1/common-2.1.jar:/home/user/.m2/repository/com/ongres/stringprep/saslprep/1.1/saslprep-1.1.jar:/home/user/.m2/repository/com/ongres/stringprep/stringprep/1.1/stringprep-1.1.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-mutiny-vertx-pg-client/1.3.0/smallrye-mutiny-vertx-pg-client-1.3.0.jar:/home/user/.m2/repository/io/smallrye/reactive/smallrye-mutiny-vertx-sql-client/1.3.0/smallrye-mutiny-vertx-sql-client-1.3.0.jar:/home/user/.m2/repository/io/quarkus/quarkus-credentials/1.11.0.Final/quarkus-credentials-1.11.0.Final.jar:/home/user/.m2/repository/org/projectlombok/lombok/1.18.12/lombok-1.18.12.jar:/home/user/.m2/repository/io/confluent/ksql/ksqldb-api-client/6.0.0/ksqldb-api-client-6.0.0.jar:/home/user/.m2/repository/io/confluent/ksql/ksqldb-rest-model/6.0.0/ksqldb-rest-model-6.0.0.jar:/home/user/.m2/repository/io/confluent/ksql/ksqldb-common/6.0.0/ksqldb-common-6.0.0.jar:/home/user/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar:/home/user/.m2/repository/io/confluent/confluent-log4j/1.2.17-cp2/confluent-log4j-1.2.17-cp2.jar -d /home/user/.jbang/cache/jars/EventResource.java.12a1ea511b7af9b76c48cdf85c01737f7cc193b42a9192e469e49b8065e712fc EventResource.java
[jbang] Post build with io.quarkus.launcher.JBangIntegration
Downloading from repo1: http://mvn.foobar.net/dev/jbang/user/quarkus/999-SNAPSHOT/maven-metadata.xml
Downloading from confluent: http://packages.confluent.io/maven/dev/jbang/user/quarkus/999-SNAPSHOT/maven-metadata.xml
Downloading from repo2: https://repo.maven.apache.org/maven2/dev/jbang/user/quarkus/999-SNAPSHOT/maven-metadata.xml
Downloading from repo1: http://mvn.foobar.net/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Downloading from repo2: https://repo.maven.apache.org/maven2/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Downloading from confluent: http://packages.confluent.io/maven/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Downloading from repo1: http://mvn.foobar.net/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Downloading from repo2: https://repo.maven.apache.org/maven2/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Downloading from confluent: http://packages.confluent.io/maven/dev/jbang/user/quarkus/999-SNAPSHOT/quarkus-999-SNAPSHOT.pom
Jan 27, 2021 9:42:04 AM org.jboss.threads.Version <clinit>
INFO: JBoss Threads version 3.2.0.Final
Jan 27, 2021 9:42:06 AM io.quarkus.deployment.pkg.steps.JarResultBuildStep buildNativeImageThinJar
INFO: Building native image source jar: /tmp/quarkus-jbang9638193534811344170/quarkus-application-native-image-source-jar/quarkus-application-runner.jar
Jan 27, 2021 9:42:06 AM io.quarkus.deployment.pkg.steps.NativeImageBuildStep build
INFO: Building native image from /tmp/quarkus-jbang9638193534811344170/quarkus-application-native-image-source-jar/quarkus-application-runner.jar
Jan 27, 2021 9:42:06 AM io.quarkus.deployment.pkg.steps.NativeImageBuildStep checkGraalVMVersion
INFO: Running Quarkus native-image plugin on GraalVM Version 20.3.0 (Java Version 11.0.9+10-jvmci-20.3-b06)
Jan 27, 2021 9:42:06 AM io.quarkus.deployment.pkg.steps.NativeImageBuildStep build
INFO: /opt/java/sdk/graalvm/bin/native-image -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -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-Dfile.encoding=UTF-8 -H:+JNI -H:EnableURLProtocols=https -H:+AllowIncompleteClasspath -H:ReflectionConfigurationFiles=reflect-config.json --no-fallback --initialize-at-run-time=org.apache.commons.logging.impl.Log4JLogger --initialize-at-build-time -H:EnableURLProtocols=https --enable-all-security-services --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar quarkus-application-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http,https --enable-all-security-services -H:NativeLinkerOption=-no-pie --no-server -H:-UseServiceLoaderFeature -H:+StackTrace quarkus-application-runner
[quarkus-application-runner:1757]    classlist:   6,965.55 ms,  1.50 GB
[quarkus-application-runner:1757]        (cap):   1,395.59 ms,  1.50 GB
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/quarkus-jbang9638193534811344170/quarkus-application-native-image-source-jar/lib/org.jboss.slf4j.slf4j-jboss-logmanager-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/quarkus-jbang9638193534811344170/quarkus-application-native-image-source-jar/lib/org.slf4j.slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Slf4jLoggerFactory]
[quarkus-application-runner:1757]        setup:   3,402.05 ms,  1.50 GB
09:42:37,100 INFO  [org.jbo.threads] JBoss Threads version 3.2.0.Final
[quarkus-application-runner:1757]     (clinit):     873.72 ms,  4.27 GB
[quarkus-application-runner:1757]   (typeflow):  19,624.08 ms,  4.27 GB
[quarkus-application-runner:1757]    (objects):  31,829.69 ms,  4.27 GB
[quarkus-application-runner:1757]   (features):   1,111.26 ms,  4.27 GB
[quarkus-application-runner:1757]     analysis:  55,897.77 ms,  4.27 GB
Error: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

com.oracle.svm.core.util.UserError$UserException: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

        at com.oracle.svm.core.util.UserError.abort(UserError.java:82)
        at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:217)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:768)
        at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:558)
        at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:471)
        at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 6 methods
Detailed message:
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a `static final` field. Method that contains the method handle invocation: java.lang.invoke.MethodHandle.invokeBasic()
To enable method handles that do not require LambdaForm interpretation (e.g. because of a call to MethodHandle.bindTo()) or to diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The error is then reported at run time when the invoke is executed and the method handle has to be interpreted.
Trace:
        at parsing java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
Call path from entry point to java.lang.invoke.Invokers$Holder.invokeExact_MT(Object, Object):
        at java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:198)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported method java.lang.invoke.MethodHandleNatives.clearCallSiteContext(MethodHandleNatives$CallSiteContext) is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
Call path from entry point to java.lang.invoke.MethodHandleNatives$CallSiteContext.run():
        at java.lang.invoke.MethodHandleNatives$CallSiteContext.run(MethodHandleNatives.java:92)
        at java.lang.Thread.run(Thread.java:834)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
        at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1264)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findConstructor(Class, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:1260)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:193)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStatic(Class, String, MethodType):
        at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:1102)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:200)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.findStaticGetter(Class, String, Class):
        at java.lang.invoke.MethodHandles$Lookup.findStaticGetter(MethodHandles.java:1539)
        at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:199)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:329)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.lang.invoke.MemberName is reachable: All methods from java.lang.invoke should have been replaced during image building.
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Trace:
        at parsing java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
Call path from entry point to java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandle):
        at java.lang.invoke.MethodHandles$Lookup.revealDirect(MethodHandles.java:1983)
        at java.lang.invoke.AbstractValidatingLambdaMetafactory.<init>(AbstractValidatingLambdaMetafactory.java:133)
        at java.lang.invoke.InnerClassLambdaMetafactory.<init>(InnerClassLambdaMetafactory.java:158)
        at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:324)
        at org.apache.avro.reflect.ReflectionUtil.getConstructorAsFunction(ReflectionUtil.java:195)
        at org.apache.avro.io.FastReaderBuilder.lambda$getTransformingStringReader$31(FastReaderBuilder.java:439)
        at org.apache.avro.io.FastReaderBuilder$$Lambda$1211/0x00000007c292c440.apply(Unknown Source)
        at sun.security.ec.XECParameters$1.get(XECParameters.java:183)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:190)
        at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:143)
        at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:330)
        at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VA_LIST:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)

        at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:129)
        at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:765)
        ... 8 more
Error: Image build request failed with exit status 1
[jbang] Deleting folder /home/user/.jbang/cache/jars/EventResource.java.12a1ea511b7af9b76c48cdf85c01737f7cc193b42a9192e469e49b8065e712fc
[jbang] [ERROR] Issue running postBuild()
dev.jbang.ExitException: Issue running postBuild()
        at dev.jbang.IntegrationManager.runIntegration(IntegrationManager.java:134)
        at dev.jbang.cli.BaseBuildCommand.buildJar(BaseBuildCommand.java:214)
        at dev.jbang.cli.BaseBuildCommand.build(BaseBuildCommand.java:137)
        at dev.jbang.cli.Run.prepareArtifacts(Run.java:83)
        at dev.jbang.cli.Run.doCall(Run.java:71)
        at dev.jbang.cli.BaseCommand.call(BaseCommand.java:85)
        at dev.jbang.cli.BaseCommand.call(BaseCommand.java:12)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at dev.jbang.Main.main(Main.java:14)
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at dev.jbang.IntegrationManager.runIntegration(IntegrationManager.java:98)
        ... 14 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at io.quarkus.launcher.JBangIntegration.postBuild(JBangIntegration.java:129)
        ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.launcher.JBangIntegration.postBuild(JBangIntegration.java:121)
        ... 19 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.bootstrap.jbang.JBangBuilderImpl.postBuild(JBangBuilderImpl.java:86)
        ... 24 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:131)
        at io.quarkus.bootstrap.app.CuratedApplication.runInAugmentClassLoader(CuratedApplication.java:81)
        at io.quarkus.bootstrap.jbang.JBangBuilderImpl.postBuild(JBangBuilderImpl.java:83)
        ... 24 more
Caused by: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:124)
        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:40)
        at io.quarkus.bootstrap.app.CuratedApplication.runInCl(CuratedApplication.java:128)
        ... 26 more
Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more

        at io.quarkus.builder.Execution.run(Execution.java:116)
        at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:79)
        at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:148)
        at io.quarkus.deployment.jbang.JBangAugmentorImpl.accept(JBangAugmentorImpl.java:101)
        ... 28 more
Caused by: java.lang.RuntimeException: Failed to build native image
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:307)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:972)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: Image generation failed. Exit code: 1
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:572)
        at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:273)
        ... 10 more
[jbang] If you believe this a bug in jbang open issue at https://github.com/jbangdev/jbang/issues
KMUS commented 3 years ago

To get this one running, I had to add an additional dependency and build argument for the GraalVM.

quarkus.native.additional-build-args =\
...
--report-unsupported-elements-at-runtime

//DEPS org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec:2.0.0.Final

//DEPS io.quarkus:quarkus-agroal

Probably this one too, but not tested.