Questions tagged [graalvm-native-image]
449 questions
3
votes
0 answers
How to Exclude DevTools in Spring Boot Native (GraalVM)
Having a simple Spring Boot application (generated on start.spring.io) with DevTools added as a dependency, if you try to build the native image:
./gradlew nativeCompile
You get an executable that if you try to run fails…

Rad
- 4,292
- 8
- 33
- 71
3
votes
1 answer
GraalVM will not work with a database connection
I'm trying to build a native image with Graalvm but kept getting errors every time i try to build it with mvn gluonfx:build with a database connection in the project, ex:H2 DB.
A normal run will work
Without any database connection the native image…

Yousef Hamarsheh
- 53
- 5
3
votes
1 answer
Is there a way to disable native image support in Micronaut?
My goal
I only want to run my Micronaut app in the JVM -- I have no interest in native image support. However, I can't find any documentation about how to turn it off.
Why bother?
First, the native image support generates noise in my build output,…

Ian Phillips
- 2,027
- 1
- 19
- 31
3
votes
1 answer
Quarkus Native image building throws error: Image generation failed
I am trying to build the native Quarkus image using the GraalVM but I am running into following Build Failure error:
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.9.2.Final:build (default) on project converter-service:…

BATMAN_2008
- 2,788
- 3
- 31
- 98
3
votes
0 answers
Error generating native image with Gluonfx for log4j and slf4j dependencies
I'm trying to build a native image of a JavaFX app with Gluonfx, Micronaut and Graalvm
As logging framework I'm using log4j2 and log4j-slf4j-impl to route logs from slf4 to log4j.
Every time I want to run gluonfx:build I get multiples errors of…

Ikaro
- 165
- 1
- 12
3
votes
1 answer
How to workaround "The command line is too long" with GraalVM and Windows?
I'm trying to make a JHipster 7 app build with GraalVM on Windows. I've successfully got it to work with macOS and Linux. With Windows, I get an error about the command line being too long.
[INFO] Executing:…

Matt Raible
- 8,187
- 9
- 61
- 120
3
votes
1 answer
How to associate JIB and GraalVM
Introduction
I'm currently working on a GitHub CI that automatically builds a container with the JIB buildpack.
And I wonder if it is possible to combine JIB and GraalVM to build a native solution?
The code of the CI:
jobs:
publish:
runs-on:…

ThrowsError
- 1,169
- 1
- 11
- 43
3
votes
0 answers
JOOQ causing runtime error with Micronaut framework when running on native image
I have built a project with Micronaut framwork and JOOQ library for database connection that runs with GraalVM native-image. It works fine until I make a request which makes a connection to the database that uses JOOQ library.
This is the error that…

arbbista
- 31
- 4
3
votes
2 answers
springboot native-image NoSuchMethodException: ConfigurationClassPostProcessor.()
I'm tryying to use GraalVM native-image to compile a spring-boot project to build an .exe file.
my pom.xml :

queue
- 43
- 4
3
votes
1 answer
Quarkus: native container missing GLIBC_2.32
I just started a new Quarkus (v2.1) project, created with the integrated generator in IntelliJ. The project is pretty much empty but i can't get the native docker container working. Doesn't matter if I build it with GraalVM on the host or inside…

tobiso
- 521
- 3
- 11
3
votes
1 answer
How to run GraalVM native-image tracing agent against Quarkus Maven unit tests to generate a reflection-config.json?
I followed the Quarkus project example for Lambda + native-image here and I was able to get that to work. However now I'm trying to extend it by adding my own code to it which uses some reflection in the library dependencies. I'm trying to run the…

alex
- 1,905
- 26
- 51
3
votes
0 answers
During Performance Test (Jmeter) of Spring Boot application the tested Method has some extremely short runtimes
I am currently working on my Bachelors Thesis on the advantages/disadvantages of GraalVM Native Image compared to a Jar running on the JVM.
During one of the Tests i am calling a certain Method which allocates and populates an Array of size 10^6.…

Marpleg
- 43
- 5
3
votes
2 answers
Quarkus, Apache directory api, google libphonenumber libraries don't work on native
This is a first microservice I'm writing in Quarkus.
Language: Kotlin
It's a simple service that reads data from LDAP DB based on some input parameters including mobile phone numbers.
Everything works in jar build. In native build Google…

pteroctopus
- 31
- 1
3
votes
2 answers
Quarkus - Open a database connection at runtime
Is it possible to open a database connection at runtime using quarkus jdbc drivers? If so how would I go about doing it. Also would the mechanism work with native images?
Basically I wish to get a connection object to the database so I can run a…

user3690467
- 3,049
- 6
- 27
- 54
3
votes
1 answer
How GraalVM integrate resources file in native image
Based on this:
By default, the native-image builder will not integrate any of the
resources which are on the classpath during image building into the
image it creates. To make calls such as Class.getResource(),
Class.getResourceAsStream() (or the…

Sam YC
- 10,725
- 19
- 102
- 158