Questions tagged [graalvm-native-image]

449 questions
0
votes
1 answer

Spring Boot 3 with Kotlin throws java.lang.UnsupportedOperationException for data class on GraalVM

Trying to run a very simple Spring Boot 3 app on GraalVM. The app just stores some data in H2 on startup. It is basically the same as what Josh does in the Spring Tips about Ahead-of-Time compilation, but using Kotlin instead of Java. When starting…
Henning Waack
  • 410
  • 3
  • 10
0
votes
0 answers

How to use @RegisterReflectionForBinding with nested types in Spring Boot 3?

I'm currently using @RegisterReflectionForBinding({ A.class, B.class }) to tell GraalVM's native-image what classes I need to process with reflection. But how do I use it for nested types? Note: Using spring-native and Spring Boot 2.x, I could…
Magnus Larsson
  • 562
  • 5
  • 10
0
votes
1 answer

native-image binary not working ,getting NoSuchMethodException , javax.servlet.ServletException, NullPointerExcpetion , How to solve it?

I have converted my java application into native image. I am using JettyServer, if i run the binary, jettyserver got started , but if a send an api request to the server it is throwing the following error instead it should execute my doGet or doPost…
Roop Sai
  • 11
  • 2
0
votes
1 answer

GraalVM Native, with Kotlin - UnsupportedCharsetException: CP1252

I am working on writing a native app written in Kotlin and compiled with the GraalVM. Part of this requires me to open and manage spreadsheets (xlsx). When I run the app in vm mode using any JVM, including Graal, everything works fine. However, when…
Christian Bongiorno
  • 5,150
  • 3
  • 38
  • 76
0
votes
0 answers

Trying to Build binary using native-image of graalVM

I am using graalVM and installed native-image binary using gu. I just wrote a simple HelloWorld program and compiled it with javac HelloWorld.java If i try to build the binary using native-image i.e native-image HelloWorld I am getting the following…
Roop Sai
  • 11
  • 2
0
votes
0 answers

Disable Windows Firewall popup when running Jpackage application which in turn runs native image of a spring boot application

Application Architechure I have a Windows application written in Java. On application startup, it runs a native image of the Spring Boot Application (Because otherwise, spring boot takes 15 to 20 secs to start) using ProcessBuilder and talks to the…
Yash garg
  • 53
  • 1
  • 7
0
votes
1 answer

Quarkus native run exec user process caused: exec format error

I started studying Quarkus. https://quarkus.io/guides/amazon-lambda There was a problem while I was handling the tutorial on the site above. If make a native work locally using AWS SAM or AWS Lambda the same error occurs during invoke. (If it is not…
0
votes
1 answer

How to load application.properties in a spring shell native app

I am working to build a spring shell native app with the graalvm. It compiles well enough but doesn't load the applications.properties file, which I sort-of understand since there is no more classpath. So, then, what's the acceptable way to do this?…
Christian Bongiorno
  • 5,150
  • 3
  • 38
  • 76
0
votes
1 answer

Cannot compile Spring Boot to native image with Python language support

I'm trying to build a native image (GraalVM 22.3) from a Spring Boot 3 RC1 application with Python language support on Apple M1. I can build the native image without Python language support. But when adding
0
votes
0 answers

Graalvm: Security Vulnerability Analysis

Just wondering if there is any tool/mechanism for auditing security vulnerabilities in native-image generated using Graalvm native image builder. For traditional java projects we can do an owsap security scan on the jar and generated report. Do we…
Valath
  • 880
  • 3
  • 13
  • 35
0
votes
0 answers

How much Spring Native Image affect on CI/CD pipeline? do we need to create built on individual environment

We are planning to switch to SpringNative using graalvm-ce-java8-21.2.0. My question is do we need to built a tested copy in all environment or we can just copy the executable or docker image directly in testing and than production environment ?…
0
votes
0 answers

>GraalVM native-image failing to compile a simple JavaFX app on Windows 10

Summary: GraalVM native-image reports the following error when compiling a simple JavaFX application: Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found Error: Image build request…
Anderus
  • 1
  • 1
0
votes
2 answers

Native Image: Overwrite configuration settings

I'm trying to run a Micronaut application as a native image in a Docker container. With the fat jar approach I could overwrite fields in my Micronaut configuration (application.yml) using the environment variable JAVA_TOOL_OPTIONS and then set a new…
saw303
  • 8,051
  • 7
  • 50
  • 90
0
votes
0 answers

Micronaut: Graalvm: Issue in building Graalvm native image for Micronaut application

I am trying to build a native-image for Micronaut project for AWS Lambda, but it is not going through. When I run the build using ./gradlew clean buildNativeLambda -Pmicronaut.runtime=lambda command, the memory and CPU usage shoots to 100% and after…
0
votes
2 answers

Failed to compile spring-native on GraalVM with the message "native-image.cmd returned non-zero result"

I followed the Spring documentation to try out the Native project, But... Is it related to the version of GraalVM? What version should I use? Spring officially supports it. Spring doc:…