Questions tagged [graalvm-native-image]
449 questions
0
votes
2 answers
Migration issues of GraalVM Native Images to AWS Graviton2(Arm64) Processors
Existing Implementation:
All Lambdas configured for x86_64 Architecture.
These lambdas are to run a GraalVM compiled Native image to execute some functionality.
The compilation of this native image is done with Maven using…

Vinu Joseph
- 965
- 9
- 11
0
votes
1 answer
org.graalvm.compiler.java: UnsupportedFeatureException: No instances of org.bson.BsonDocument are allowed in the image heap
Trying to create native image on micronaut application with Graal VM 22.1.0.r17 using gradle command as
./gradlew nativeCompile
but getting an exception as
Caused by: org.graalvm.compiler.java.BytecodeParser$BytecodeParserError:…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
2 answers
Quarkus GraalVM native build fails in AWS Lambda with ClassNotFoundException
I want to create a java project with quarkus and want to use GraalVm for ahead of time compilation to lower cold startup times in AWS lambda.
When I deploy it in AWS Lambda and run Test I get the following error:
Class not found:…

timguy
- 2,063
- 2
- 21
- 40
0
votes
1 answer
Create and deploy Micronaut AWS Lambda GraalVM Native Image CRUD Application to handle APIGatewayV2HttpEvent by delegating to Controller
I am trying to deploy (via Docker) a CRUD Micronaut AWS Lambda (Function/Application?) that should handle APIGatewayV2HTTPEvent requests and should compile into native-image, but couldn't find concise guide to do that so I am trying to gather info…

Lorenzo Valente
- 37
- 5
0
votes
1 answer
How to represent a C char array in Java with GraalVm
I'm consuming a C library in Java with GraalVm and I have this field (if_name) I don't know how to implement:
# define IFNAMSIZ 16
struct port_t
{
char if_name[IFNAMSIZ];
}
This is my current code:
@CStruct("port_t")
interface Port extends…

Ikaro
- 165
- 1
- 12
0
votes
1 answer
Gluonfx build using docker fails, with error: Cannot run program "ie4uinit": CreateProcess error=2, The system cannot find the file specified
I'm building a native image using the Gluonfx plugin. I'm doing this procedure inside a docker container.
The image builds the 7 steps, but doing the link throws an error complaining about missing ie4uinit.exe.
These are the error logs:
[Mon Mar 28…

Ikaro
- 165
- 1
- 12
0
votes
0 answers
Does spring native support spring-boot-starter-data-elasticsearch dependency?
I am trying to build a spring native image with ‘spring-boot-starter-data-elasticsearch’ dependency which uses RestHighLevelClient to interact with elasticsearch.
It turns out I always receive ‘connection refused’ exception. Any idea why this…

RAM KUMAR
- 13
- 3
0
votes
1 answer
Maven error building Quarkus native image (java.nio.file.AccessDeniedException: /./target)
I am trying to use Github self hosted runners to build the native image for my quarkus applications.
This is working great for me on the Github hosted runners, but I want to do this on self hosted runners so we don't blow our github actions minutes…

Jeffrey Fagerberg
- 33
- 6
0
votes
2 answers
Can we create native image from inside a graalvm docker and run it anywhere?
We are new to Graalvm and are building a simple Java command line app. The jar runs fine in jvm mode (java -jar .jar). We don't install Graalvm on our machines (yet) so we tried to create the native image from inside Docker container which…

QuocNg
- 122
- 1
- 8
0
votes
0 answers
Error in native build with GluonFX, the library is not in the classpath
I'm trying to build a JavaFx and compile it to native with GluonFX. Recently I needed to add a feature that uses a native C Library. I used org.graalvm.nativeimage for this.
The problem I'm having is that the "Link" step fails because it doesn't…

Ikaro
- 165
- 1
- 12
0
votes
1 answer
Native image with gluonfx fails if I use org.graalvm.nativeimage.c
I have a JavaFx project that I am compiling to native with no problems using GluonFx.
I recently had to add a feature that uses a DLL through to make use of its native functions. I have done this through GraalVm using this solution:…

Ikaro
- 165
- 1
- 12
0
votes
0 answers
Quarkus graalvm native image google cloud run deploy problem
i'm trying to deploy quarkus graalvm native image into google cloud run using by Dokerfile.
But always getting an error without any reasons, i think timeout exception occurs..
My Dockerfile:
## Stage 1 : build with maven builder image with native…

ytech
- 157
- 1
- 10
0
votes
1 answer
Quarkus: Errors when performing native build using AWS classes
I am building an application using Quarkus 2.6.1 that will perform operations in AWS using the AWS SDK. Particularly, DynamoDB, using both standard DynamoDB calls, as well as DynamoDB Mapper for object mapping. The application works just great in…

Shadowman
- 11,150
- 19
- 100
- 198
0
votes
0 answers
What is the recommended gc for a Spring Boot application compiled to native image
I am testing native compilation with Spring Boot:
https://github.com/spring-projects-experimental/spring-native
and I found the following documentation:
https://www.graalvm.org/reference-manual/native-image/MemoryManagement/
What is the recommended…

jabrena
- 1,166
- 3
- 11
- 25
0
votes
0 answers
Spring Boot, local GUI and native image
I build web apps professionally with Spring Boot & Angular.
For some pet projects however, I would like to avoid the (costly) hassle of the DevOps & hosting of such projects.
I know some JavaFX and have taken interest in native images. I tried for…

Dranna
- 505
- 3
- 15