Questions tagged [graalvm-native-image]
449 questions
0
votes
1 answer
How to build a native-image Docker image that runs multiple architectures?
I would like to create a multi architecture Docker image containing the native-image binary of my Micronaut application.
When running ./gradlew dockerfileNative Micronaut generates a Dockerfile using a multi-staged build to create the native image…

saw303
- 8,051
- 7
- 50
- 90
0
votes
1 answer
GraalVM native image-image build error, report 'Error encountered while parsing io.netty.channel.nio.NioEventLoop.openSelector()'
Native image building environment: CentOS Linux release 7.9.2009 (Core), graalvm-ce-java17-22.3.0. The jar file is built by Zulu 17.0.5+8 (also tried 1.8) with NetBeans 15 on Windows 10. Netty dependencies:
…

zipper
- 377
- 1
- 5
- 18
0
votes
1 answer
Using Properties Class with Map within an spring native build
I try to build a native executable with GraalVM and Spring Boot 3.0.
When I use configuration properties class including a HashMap, starting of these application fails.
example project
This class contains a simple…

Jonathan H
- 23
- 5
0
votes
0 answers
Support AOT and spring native in eureka server
am reading about sprint native and AOT and i noticed that eureka-server does not support native image, resource: https://docs.spring.io/spring-cloud-netflix/docs/current/reference/html/#aot-and-native-image-support-2
any reason for not supporting…

ahmad alammar
- 31
- 3
0
votes
0 answers
Problems running Quarkus sample application from a GraalVM image-based Docker container
Working on Windows 10, I downloaded the simple Quarkus sample prototype.
I run it normally and be able to access http://localhost:8118/hello, except if I try to run it from the native image executable for GraalVM.
I have to say that I don't have…

JLLMNCHR
- 1,551
- 5
- 24
- 50
0
votes
0 answers
Can I build spring-native boot image in low resources machine (like AWS CodeBuild Linux Small 2vCPUs / 3gb ram)?
I want to build boot build image for GraalVM spring native project using AWS CodeBuild called from AWS CodePipeline, but the build process stops at missing RAM resources. I tried the default spring builder and the following one:…

rafallezanko
- 5
- 3
0
votes
1 answer
Spring Boot 3 Build vs Runtime Initialization Hints
I am working on creating an internal library/starter for my team that will add support for creating native images, providing all of the hints that our currently unsupported dependencies will need. I really like providing the metadata via code (using…

matthenry87
- 102
- 2
- 10
0
votes
1 answer
kotlin.reflect.jvm.internal.KotlinReflectionInternalError when running a native image with Spring Cloud Gateway and Spring Security
I've successfully generated a native image of a Spring Cloud Gateway (2022.0.0 - Spring Boot 3.0.0) application implemented in Kotlin.
I have the following security configuration:
@EnableReactiveMethodSecurity
@Configuration(proxyBeanMethods =…

codependent
- 23,193
- 31
- 166
- 308
0
votes
1 answer
Unable to create .exe using GraalVM docker image in Windows
In Windows 10 environment, with IntelliJ Idea, I have a sample Spring Boot application created with bootify, called Bootifytwo, which is located in the C:\CODIGO\IDEA_PROJECTS\bootifytwo folder.
In the pom.xml of said application I have the…

JLLMNCHR
- 1,551
- 5
- 24
- 50
0
votes
0 answers
Spring Boot 3 and cross platform native-image creation with GraalVM
with Spring Boot 3 release there is lots of advertisement about GraalVM and native-images, so I decided experiment little bit..
With Spring Boot Initializer I quickly created a really simple gradle project (one single rest service that is doing…

posthumecaver
- 1,584
- 4
- 16
- 29
0
votes
1 answer
GraalVM native-image building - ARM64
I am trying to build a Docker image in my Mac M1....
When I try to run my Image I am getting "exec format error" which as I understand a cross platform native image problem but as far as I can see I build the native-image with an arm64…

posthumecaver
- 1,584
- 4
- 16
- 29
0
votes
0 answers
How to extract metrics from the app running an native image by GraalVM
I have been exploring the native-image with one of my applications. In the current architecture of my application, it's an akka-grpc powered java app that publishes messages to Kafka. I have been using the apache-kafka library as a Kafka producer…

sphoenix
- 3,327
- 5
- 22
- 40
0
votes
0 answers
Native-Image binary not supporting a server effeciently
In my java application i have created a JettyServer.
In GraalVM i have implemented it and did a load test with it , i didn't find any issues.
I then converted the java application to a static native-image binary .
And if I do load test with this, I…

Roop Sai
- 11
- 2
0
votes
0 answers
native build failure: classes specified in --initialize-at-run-time still say that they are requested to be initialized at run time
I'm new to Quarkus and trying to build a native image using "mvn package -Pnative". I received the error "Error: Classes that should be initialized at run time got initialized during image building:" so in the pom.xml I added an additional build arg…

tkb2022
- 1
0
votes
0 answers
@ExceptionHandler for Exception.class, the exception message is null on graalVM native image
Have this code inside ControllerAdvice:
@ExceptionHandler(value = Exception.class)
@ResponseStatus(value = INTERNAL_SERVER_ERROR)
protected ResponseEntity handleAnyException(Exception ex, WebRequest request) {
for custom exception and…

xMilos
- 1,519
- 4
- 21
- 36