Questions tagged [graalvm-native-image]

449 questions
4
votes
0 answers

How to fix "docker-java-stream" java.lang.UnsatisfiedLinkError: Error looking up function 'write'"? - Windows10 + GraalVM + Docker + Micronaut

I am very new to this, so please bear with me if it is too basic. I am trying to run java based AWS lambda functions in GraalVM by using micronaut framework and following their guide from here. I installed below in my Windows 10 PC. GraalVM &…
4
votes
1 answer

Error: Classes that should be initialized at run time got initialized during image building: org.conscrypt.Conscrypt was unintentionally initialized

Using Java 11.0.9 (GraalVM CE 20.3.0) wth a Micronaut 2.2.1 app making use of Firebase admin 7.1.0, when I package my app as a native image according to the Micronaut documentation, I get the following error: $ ./gradlew nativeImage > Task…
Laurent
  • 14,122
  • 13
  • 57
  • 89
4
votes
2 answers

GraalVM Native Image failing on Springdoc dependency

I am trying to create a sample application using spring boot and GraalVM Native Image, however as soon as I add the dependency for Springdoc the generated executable is no longer working due to the following: java.lang.IllegalStateException: Error…
4
votes
0 answers

How to run Spring Boot in GraalVM without JRE

I'm trying to run Spring Boot application using GraalVM Native. After successful compilation into single file, I can easily run binary, Spring Boot starts normally, but when I trying to run it inside docker with ubuntu image (it not contains java,…
4
votes
1 answer

Why does a GraalVM (SubstrateVM) native image uses so much less memory at runtime than a corresponding JIT build?

I'm wondering why a GraalVM (SubstrateVM) native image of a Java application makes it run where the runtime behavior will consume much less memory, yet if run normally, it will consume a lot more memory? And why can't the normal JIT be made to…
Didier A.
  • 4,609
  • 2
  • 43
  • 45
4
votes
2 answers

Graalvm tool: native-image-configure not found

The link describes the usage of the tool native-image-configure https://github.com/oracle/graal/blob/master/substratevm/CONFIGURE.md I am not able to find this tool in Graalvm version 19.0.3.2 for JDK11 Where do i get this tool?
Srikanth
  • 1,015
  • 12
  • 16
4
votes
2 answers

Can a native image generated by GraalVM replace IKVM generated DLLs?

I have some Java-app and a customer with some UWP-app implemented in C#, distributed through the Windows Store etc., who wants to use some pieces of my app. Those pieces are pretty OS-independent, only parsing of some special binary file formats,…
Thorsten Schöning
  • 3,501
  • 2
  • 25
  • 46
4
votes
1 answer

GraalVM error building using native-image-maven-plugin

I'm trying to use the native-image-maven-plugin to build a Java project but I'm getting the following error: [ERROR] Failed to execute goal com.oracle.substratevm:native-image-maven-plugin:19.1.0:native-image (default) on project yolo-parent:…
mfirry
  • 3,634
  • 1
  • 26
  • 36
3
votes
2 answers

Adding micronaut serde fails starting application as serverless with lanch class as io.micronaut.function.aws.runtime.MicronautLambdaRuntime

micronaut serde to support serialization and deserialization on GraalVM Native Image. But after adding it the lambda stopped working with below error : Request loop failed with: Error decoding HTTP response body: No bean introspection available for…
3
votes
1 answer

GraalVM and Kotlin inline value classes?

I would like to use value class in native image: @JvmInline value class MyValueClass(val id: UUID) I marked it for reflection: @Configuration(proxyBeanMethods = false) @RegisterReflectionForBinding(MyValueClass::class, ...) class BeanConfiguration…
pixel
  • 24,905
  • 36
  • 149
  • 251
3
votes
1 answer

How to build a Spring Boot 3.0.6 REST API into a working native image?

I'm on Windows, assuming I'm downloading a default demo project from Spring Initializr as follows: Now for the project to run I'll also add default H2 support to the…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
3
votes
3 answers

docker build fails inside gitlab-runner but works locally : spring boot native compilation with GraalVm

I made a Dockerfile to build my spring boot project with GraalVm natively; everything went correctly. Here is the Dockerfile FROM ghcr.io/graalvm/graalvm-ce:22.3.1 AS buildnative WORKDIR /app COPY mvnw pom.xml ./ COPY .mvn/ .mvn COPY src ./src RUN…
3
votes
1 answer

Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'mvcHandlerMappingIntrospector'

I upgraded Spring boot version 3.0.2 and i try graalvm nativeCompile that is error happened. I run this application normal way it is OK but i try executable file show this error. Exception encountered during context initialization - cancelling…
3
votes
1 answer

Profile specific application properties not picked by Spring Boot 3 native executable

I am planning to use a native image with Spring Boot 3. My environment-specific properties are stored in the application.properties file. Sample…
Ladu anand
  • 646
  • 2
  • 8
  • 30
3
votes
1 answer

New Relic with graalvm

I am developing spring boot 3 app with native graalvm support. For that I want to integrate Newrelic with it. Any idea on integrating new Relic with graalvm. I tried to add new Relic agent by using --jvmargs option.
jayesh
  • 31
  • 1
1 2
3
29 30