You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When build my application with graalvm-jdk-21.0.5_linux-x64_bin, I get the following class cast exception:
java.lang.ClassCastException: class com.oracle.svm.hosted.meta.HostedInterface cannot be cast to class com.oracle.svm.hosted.meta.HostedInstanceClass (com.oracle.svm.hosted.meta.HostedInterface and com.oracle.svm.hosted.meta.HostedInstanceClass are in module org.graalvm.nativeimage.builder of loader 'app')
Any idea where to go from here?
Using the latest version of GraalVM can resolve many issues.
Note: ***.jar are project artifacts I'm not allowed to post here
Expected Behavior
Create a native binary executable
Actual Behavior
[3/8] building universe fails with class cast exception:
java.lang.ClassCastException: class com.oracle.svm.hosted.meta.HostedInterface cannot be cast to class com.oracle.svm.hosted.meta.HostedInstanceClass (com.oracle.svm.hosted.meta.HostedInterface and com.oracle.svm.hosted.meta.HostedInstanceClass are in module org.graalvm.nativeimage.builder of loader 'app')
Steps to Reproduce
none - only happens in complex project build setup
Additional Context
No response
Build Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered:
Describe the Issue
When build my application with graalvm-jdk-21.0.5_linux-x64_bin, I get the following class cast exception:
java.lang.ClassCastException: class com.oracle.svm.hosted.meta.HostedInterface cannot be cast to class com.oracle.svm.hosted.meta.HostedInstanceClass (com.oracle.svm.hosted.meta.HostedInterface and com.oracle.svm.hosted.meta.HostedInstanceClass are in module org.graalvm.nativeimage.builder of loader 'app')
Any idea where to go from here?
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "21.0.5" 2024-10-15 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.5+9.1 (build 21.0.5+9-LTS-jvmci-23.1-b48)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.5+9.1 (build 21.0.5+9-LTS-jvmci-23.1-b48, mixed mode, sharing)
Operating System and Version
Linux graalvm-build 6.1.0-25-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
Build Command
[INFO] Executing: /home/ado-agent/_work/1/s/jdk/graalvm-jdk-21.0.5+9.1/bin/native-image -cp /home/ado-agent/_work/1/s/my-service-app/target/classes:/home/ado-agent/.m2/repository/net/bytebuddy/byte-buddy/1.14.12/byte-buddy-1.14.12.jar:/home/ado-agent/.m2/repository/net/bytebuddy/byte-buddy-agent/1.14.12/byte-buddy-agent-1.14.12.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/3.2.0/spring-boot-starter-actuator-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter/3.2.0/spring-boot-starter-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot/3.2.0/spring-boot-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-logging/3.2.0/spring-boot-starter-logging-3.2.0.jar:/home/ado-agent/.m2/repository/ch/qos/logback/logback-classic/1.4.11/logback-classic-1.4.11.jar:/home/ado-agent/.m2/repository/ch/qos/logback/logback-core/1.4.11/logback-core-1.4.11.jar:/home/ado-agent/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.21.1/log4j-to-slf4j-2.21.1.jar:/home/ado-agent/.m2/repository/org/apache/logging/log4j/log4j-api/2.21.1/log4j-api-2.21.1.jar:/home/ado-agent/.m2/repository/org/slf4j/jul-to-slf4j/2.0.9/jul-to-slf4j-2.0.9.jar:/home/ado-agent/.m2/repository/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/3.2.0/spring-boot-actuator-autoconfigure-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-actuator/3.2.0/spring-boot-actuator-3.2.0.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.3/jackson-datatype-jsr310-2.15.3.jar:/home/ado-agent/.m2/repository/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.jar:/home/ado-agent/.m2/repository/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.jar:/home/ado-agent/.m2/repository/io/micrometer/micrometer-jakarta9/1.12.0/micrometer-jakarta9-1.12.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/3.2.0/spring-boot-starter-data-jpa-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-aop/3.2.0/spring-boot-starter-aop-3.2.0.jar:/home/ado-agent/.m2/repository/org/aspectj/aspectjweaver/1.9.20.1/aspectjweaver-1.9.20.1.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/3.2.0/spring-boot-starter-jdbc-3.2.0.jar:/home/ado-agent/.m2/repository/com/zaxxer/HikariCP/5.0.1/HikariCP-5.0.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-jdbc/6.1.1/spring-jdbc-6.1.1.jar:/home/ado-agent/.m2/repository/org/hibernate/orm/hibernate-core/6.3.1.Final/hibernate-core-6.3.1.Final.jar:/home/ado-agent/.m2/repository/jakarta/persistence/jakarta.persistence-api/3.1.0/jakarta.persistence-api-3.1.0.jar:/home/ado-agent/.m2/repository/jakarta/transaction/jakarta.transaction-api/2.0.1/jakarta.transaction-api-2.0.1.jar:/home/ado-agent/.m2/repository/org/jboss/logging/jboss-logging/3.5.3.Final/jboss-logging-3.5.3.Final.jar:/home/ado-agent/.m2/repository/org/hibernate/common/hibernate-commons-annotations/6.0.6.Final/hibernate-commons-annotations-6.0.6.Final.jar:/home/ado-agent/.m2/repository/io/smallrye/jandex/3.1.2/jandex-3.1.2.jar:/home/ado-agent/.m2/repository/com/fasterxml/classmate/1.6.0/classmate-1.6.0.jar:/home/ado-agent/.m2/repository/org/glassfish/jaxb/jaxb-runtime/4.0.4/jaxb-runtime-4.0.4.jar:/home/ado-agent/.m2/repository/org/glassfish/jaxb/jaxb-core/4.0.4/jaxb-core-4.0.4.jar:/home/ado-agent/.m2/repository/org/eclipse/angus/angus-activation/2.0.1/angus-activation-2.0.1.jar:/home/ado-agent/.m2/repository/org/glassfish/jaxb/txw2/4.0.4/txw2-4.0.4.jar:/home/ado-agent/.m2/repository/com/sun/istack/istack-commons-runtime/4.1.2/istack-commons-runtime-4.1.2.jar:/home/ado-agent/.m2/repository/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar:/home/ado-agent/.m2/repository/org/antlr/antlr4-runtime/4.10.1/antlr4-runtime-4.10.1.jar:/home/ado-agent/.m2/repository/org/springframework/data/spring-data-jpa/3.2.0/spring-data-jpa-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/data/spring-data-commons/3.2.0/spring-data-commons-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/spring-orm/6.1.1/spring-orm-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-tx/6.1.1/spring-tx-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-aspects/6.1.1/spring-aspects-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-security/3.2.0/spring-boot-starter-security-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/spring-aop/6.1.1/spring-aop-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-config/6.2.0/spring-security-config-6.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-web/6.2.0/spring-security-web-6.2.0.jar:/home/ado-agent/.m2/repository/.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.15.3/jackson-annotations-2.15.3.jar:/home/ado-agent/.m2/repository/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar:/home/ado-agent/.m2/repository/.jar:/home/ado-agent/.m2/repository/.jar:/home/ado-agent/.m2/repository/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar:/home/ado-agent/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/home/ado-agent/.m2/repository/com/jayway/jsonpath/json-path/2.8.0/json-path-2.8.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-oauth2-client/3.2.0/spring-boot-starter-oauth2-client-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-oauth2-client/6.2.0/spring-security-oauth2-client-6.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-oauth2-core/6.2.0/spring-security-oauth2-core-6.2.0.jar:/home/ado-agent/.m2/repository/com/nimbusds/oauth2-oidc-sdk/9.43.3/oauth2-oidc-sdk-9.43.3.jar:/home/ado-agent/.m2/repository/com/nimbusds/content-type/2.2/content-type-2.2.jar:/home/ado-agent/.m2/repository/com/nimbusds/lang-tag/1.7/lang-tag-1.7.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-oauth2-jose/6.2.0/spring-security-oauth2-jose-6.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-core/6.2.1/spring-security-core-6.2.1.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-crypto/6.2.0/spring-security-crypto-6.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/spring-beans/6.1.1/spring-beans-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-context/6.1.1/spring-context-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-core/6.1.1/spring-core-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-jcl/6.1.1/spring-jcl-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-expression/6.1.1/spring-expression-6.1.1.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-client/6.9.2/kubernetes-client-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-client-api/6.9.2/kubernetes-client-api-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-core/6.9.2/kubernetes-model-core-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-common/6.9.2/kubernetes-model-common-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-gatewayapi/6.9.2/kubernetes-model-gatewayapi-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-resource/6.9.2/kubernetes-model-resource-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-rbac/6.9.2/kubernetes-model-rbac-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-admissionregistration/6.9.2/kubernetes-model-admissionregistration-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-apps/6.9.2/kubernetes-model-apps-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-autoscaling/6.9.2/kubernetes-model-autoscaling-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-apiextensions/6.9.2/kubernetes-model-apiextensions-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-batch/6.9.2/kubernetes-model-batch-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-certificates/6.9.2/kubernetes-model-certificates-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-coordination/6.9.2/kubernetes-model-coordination-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-discovery/6.9.2/kubernetes-model-discovery-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-events/6.9.2/kubernetes-model-events-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-extensions/6.9.2/kubernetes-model-extensions-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-flowcontrol/6.9.2/kubernetes-model-flowcontrol-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-networking/6.9.2/kubernetes-model-networking-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-metrics/6.9.2/kubernetes-model-metrics-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-policy/6.9.2/kubernetes-model-policy-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-scheduling/6.9.2/kubernetes-model-scheduling-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-storageclass/6.9.2/kubernetes-model-storageclass-6.9.2.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-model-node/6.9.2/kubernetes-model-node-6.9.2.jar:/home/ado-agent/.m2/repository/org/snakeyaml/snakeyaml-engine/2.7/snakeyaml-engine-2.7.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.15.3/jackson-dataformat-yaml-2.15.3.jar:/home/ado-agent/.m2/repository/io/fabric8/kubernetes-httpclient-okhttp/6.9.2/kubernetes-httpclient-okhttp-6.9.2.jar:/home/ado-agent/.m2/repository/com/squareup/okhttp3/okhttp/4.12.0/okhttp-4.12.0.jar:/home/ado-agent/.m2/repository/com/squareup/okio/okio/3.6.0/okio-3.6.0.jar:/home/ado-agent/.m2/repository/com/squareup/okio/okio-jvm/3.6.0/okio-jvm-3.6.0.jar:/home/ado-agent/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.9.20/kotlin-stdlib-common-1.9.20.jar:/home/ado-agent/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.9.20/kotlin-stdlib-jdk8-1.9.20.jar:/home/ado-agent/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.9.20/kotlin-stdlib-1.9.20.jar:/home/ado-agent/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/home/ado-agent/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.9.20/kotlin-stdlib-jdk7-1.9.20.jar:/home/ado-agent/.m2/repository/com/squareup/okhttp3/logging-interceptor/4.12.0/logging-interceptor-4.12.0.jar:/home/ado-agent/.m2/repository/io/fabric8/zjsonpatch/0.3.0/zjsonpatch-0.3.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-oauth2-resource-server/3.2.0/spring-boot-starter-oauth2-resource-server-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-oauth2-resource-server/6.2.0/spring-security-oauth2-resource-server-6.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-web/3.2.0/spring-boot-starter-web-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-json/3.2.0/spring-boot-starter-json-3.2.0.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.3/jackson-datatype-jdk8-2.15.3.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.3/jackson-module-parameter-names-2.15.3.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/3.2.0/spring-boot-starter-tomcat-3.2.0.jar:/home/ado-agent/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/10.1.16/tomcat-embed-core-10.1.16.jar:/home/ado-agent/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/10.1.16/tomcat-embed-el-10.1.16.jar:/home/ado-agent/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/10.1.16/tomcat-embed-websocket-10.1.16.jar:/home/ado-agent/.m2/repository/org/springframework/spring-web/6.1.1/spring-web-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/spring-webmvc/6.1.1/spring-webmvc-6.1.1.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-starter-circuitbreaker-resilience4j/3.1.0/spring-cloud-starter-circuitbreaker-resilience4j-3.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-starter/4.1.0/spring-cloud-starter-4.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-context/4.1.0/spring-cloud-context-4.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/security/spring-security-rsa/1.1.1/spring-security-rsa-1.1.1.jar:/home/ado-agent/.m2/repository/org/bouncycastle/bcprov-jdk18on/1.74/bcprov-jdk18on-1.74.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-circuitbreaker-resilience4j/3.1.0/spring-cloud-circuitbreaker-resilience4j-3.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-spring-boot3/2.1.0/resilience4j-spring-boot3-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-spring6/2.1.0/resilience4j-spring6-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-annotations/2.1.0/resilience4j-annotations-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-consumer/2.1.0/resilience4j-consumer-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-circularbuffer/2.1.0/resilience4j-circularbuffer-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-framework-common/2.1.0/resilience4j-framework-common-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-micrometer/2.1.0/resilience4j-micrometer-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-retry/2.1.0/resilience4j-retry-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-ratelimiter/2.1.0/resilience4j-ratelimiter-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-circuitbreaker/2.1.0/resilience4j-circuitbreaker-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-core/2.1.0/resilience4j-core-2.1.0.jar:/home/ado-agent/.m2/repository/io/github/resilience4j/resilience4j-timelimiter/2.1.0/resilience4j-timelimiter-2.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-starter-openfeign/4.1.0/spring-cloud-starter-openfeign-4.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-openfeign-core/4.1.0/spring-cloud-openfeign-core-4.1.0.jar:/home/ado-agent/.m2/repository/io/github/openfeign/form/feign-form-spring/3.8.0/feign-form-spring-3.8.0.jar:/home/ado-agent/.m2/repository/io/github/openfeign/form/feign-form/3.8.0/feign-form-3.8.0.jar:/home/ado-agent/.m2/repository/commons-fileupload/commons-fileupload/1.5/commons-fileupload-1.5.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-commons/4.1.0/spring-cloud-commons-4.1.0.jar:/home/ado-agent/.m2/repository/io/github/openfeign/feign-core/13.1/feign-core-13.1.jar:/home/ado-agent/.m2/repository/io/github/openfeign/feign-slf4j/13.1/feign-slf4j-13.1.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-starter-loadbalancer/4.1.0/spring-cloud-starter-loadbalancer-4.1.0.jar:/home/ado-agent/.m2/repository/org/springframework/cloud/spring-cloud-loadbalancer/4.1.0/spring-cloud-loadbalancer-4.1.0.jar:/home/ado-agent/.m2/repository/io/projectreactor/reactor-core/3.6.0/reactor-core-3.6.0.jar:/home/ado-agent/.m2/repository/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/home/ado-agent/.m2/repository/io/projectreactor/addons/reactor-extra/3.5.1/reactor-extra-3.5.1.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-starter-cache/3.2.0/spring-boot-starter-cache-3.2.0.jar:/home/ado-agent/.m2/repository/org/springframework/spring-context-support/6.1.1/spring-context-support-6.1.1.jar:/home/ado-agent/.m2/repository/com/stoyanr/evictor/1.0.0/evictor-1.0.0.jar:/home/ado-agent/.m2/repository/io/micrometer/micrometer-registry-prometheus/1.12.0/micrometer-registry-prometheus-1.12.0.jar:/home/ado-agent/.m2/repository/io/micrometer/micrometer-core/1.12.0/micrometer-core-1.12.0.jar:/home/ado-agent/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar:/home/ado-agent/.m2/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar:/home/ado-agent/.m2/repository/io/prometheus/simpleclient_common/0.16.0/simpleclient_common-0.16.0.jar:/home/ado-agent/.m2/repository/io/prometheus/simpleclient/0.16.0/simpleclient-0.16.0.jar:/home/ado-agent/.m2/repository/io/prometheus/simpleclient_tracer_otel/0.16.0/simpleclient_tracer_otel-0.16.0.jar:/home/ado-agent/.m2/repository/io/prometheus/simpleclient_tracer_common/0.16.0/simpleclient_tracer_common-0.16.0.jar:/home/ado-agent/.m2/repository/io/prometheus/simpleclient_tracer_otel_agent/0.16.0/simpleclient_tracer_otel_agent-0.16.0.jar:/home/ado-agent/.m2/repository/org/postgresql/postgresql/42.6.1/postgresql-42.6.1.jar:/home/ado-agent/.m2/repository/org/checkerframework/checker-qual/3.31.0/checker-qual-3.31.0.jar:/home/ado-agent/.m2/repository/org/liquibase/liquibase-core/4.25.1/liquibase-core-4.25.1.jar:/home/ado-agent/.m2/repository/com/opencsv/opencsv/5.8/opencsv-5.8.jar:/home/ado-agent/.m2/repository/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar:/home/ado-agent/.m2/repository/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.jar:/home/ado-agent/.m2/repository/org/yaml/snakeyaml/2.2/snakeyaml-2.2.jar:/home/ado-agent/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar:/home/ado-agent/.m2/repository/org/projectlombok/lombok/1.18.30/lombok-1.18.30.jar:/home/ado-agent/.m2/repository/.jar:/home/ado-agent/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.2.0/spring-boot-autoconfigure-3.2.0.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.3/jackson-core-2.15.3.jar:/home/ado-agent/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.3/jackson-databind-2.15.3.jar:/home/ado-agent/.m2/repository/commons-io/commons-io/2.15.0/commons-io-2.15.0.jar:/home/ado-agent/.m2/repository/io/opentracing/opentracing-api/0.33.0/opentracing-api-0.33.0.jar:/home/ado-agent/.m2/repository/io/opentracing/opentracing-util/0.33.0/opentracing-util-0.33.0.jar:/home/ado-agent/.m2/repository/io/opentracing/opentracing-noop/0.33.0/opentracing-noop-0.33.0.jar:/home/ado-agent/.m2/repository/com/datadoghq/dd-trace-api/1.24.2/dd-trace-api-1.24.2.jar:/home/ado-agent/.m2/repository/org/apache/maven/maven-model/3.9.6/maven-model-3.9.6.jar:/home/ado-agent/.m2/repository/org/codehaus/plexus/plexus-utils/3.5.1/plexus-utils-3.5.1.jar:/home/ado-agent/.m2/repository/com/nimbusds/nimbus-jose-jwt/9.37.3/nimbus-jose-jwt-9.37.3.jar:/home/ado-agent/.m2/repository/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/home/ado-agent/.m2/repository/io/swagger/core/v3/swagger-annotations/2.2.20/swagger-annotations-2.2.20.jar:/home/ado-agent/.m2/repository/org/reflections/reflections/0.10.2/reflections-0.10.2.jar:/home/ado-agent/.m2/repository/org/javassist/javassist/3.28.0-GA/javassist-3.28.0-GA.jar:/home/ado-agent/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/home/ado-agent/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.1/jakarta.xml.bind-api-4.0.1.jar:/home/ado-agent/.m2/repository/jakarta/activation/jakarta.activation-api/2.1.2/jakarta.activation-api-2.1.2.jar:/home/ado-agent/.m2/repository/net/minidev/json-smart/2.5.0/json-smart-2.5.0.jar:/home/ado-agent/.m2/repository/net/minidev/accessors-smart/2.5.0/accessors-smart-2.5.0.jar:/home/ado-agent/.m2/repository/org/ow2/asm/asm/9.3/asm-9.3.jar --no-fallback -o /home/ado-agent/_work/1/s/my-service-app/target/my-service-app -H:ConfigurationFileDirectories=/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.apache.tomcat.embed/tomcat-embed-core/10.0.20,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.liquibase/liquibase-core/4.20.0,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.hibernate.orm/hibernate-core/6.2.0.Final,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.glassfish.jaxb/jaxb-runtime/3.0.2,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.postgresql/postgresql/42.3.4,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.jetbrains.kotlin/kotlin-stdlib/1.7.10,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.hdrhistogram/HdrHistogram/2.1.12,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/com.fasterxml.jackson.core/jackson-databind/2.15.2,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/ch.qos.logback/logback-classic/1.4.1,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/org.jboss.logging/jboss-logging/3.5.0.Final,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/com.zaxxer/HikariCP/5.0.1,/home/ado-agent/_work/1/s/my-service-app/target/graalvm-reachability-metadata/c282f7e04af42df3a391475c40f8e3c132a58b87/com.zaxxer/HikariCP/5.0.1 -H:+AddAllCharsets -J-javaagent:/home/ado-agent/_work/1/s/my-service-app/lib/dd-java-agent-1.38.1.jar --gc=G1 --pgo=/home/ado-agent/_work/1/s/my-service-app/my-service.iprof com.service.MyServiceApplication
Note: ***.jar are project artifacts I'm not allowed to post here
Expected Behavior
Create a native binary executable
Actual Behavior
[3/8] building universe fails with class cast exception:
java.lang.ClassCastException: class com.oracle.svm.hosted.meta.HostedInterface cannot be cast to class com.oracle.svm.hosted.meta.HostedInstanceClass (com.oracle.svm.hosted.meta.HostedInterface and com.oracle.svm.hosted.meta.HostedInstanceClass are in module org.graalvm.nativeimage.builder of loader 'app')
Steps to Reproduce
none - only happens in complex project build setup
Additional Context
No response
Build Log Output and Error Messages
No response
The text was updated successfully, but these errors were encountered: