Questions tagged [graalvm-native-image]

449 questions
0
votes
0 answers

Quarkus native build UnresolvedElementException exception

On running the following command, I'm getting the UnresolvedElementException mvn package -e -Dquarkus.native.remote-container-build=true -Dquarkus.native.native-image-xmx=12000m -Dnative My code is as follows @ApplicationScoped public class…
0
votes
0 answers

Error while creating native image with GraalVM on Windows 11

When I try to create native image on Windows 11 computer I get the error below. And my environment specifications are like this: OS : Windows 11 Enterprise 64-bit (22621) (Language : English) GraalVM : ce-java11-22.1.0 (Windows amd64) Microsoft…
0
votes
1 answer

Unable to run spring boot 3 with kafka-avro-serializer

I have a spring boot application in clean architecture. I use spring boot 3.0.5 with spring-kafka and kafka-avro-serializer : org.springframework.kafka
0
votes
1 answer

How to find error in spring processAot task?

I'm changing my application to the new spring boot 3.0.5 with native graal. When executing the processAot task the error below happens: Task :app:processAot 12:04:29.496 [main] DEBUG reactor.util.Loggers -- Using Slf4j logging framework 2023-04-11…
0
votes
0 answers

Spring Boot 3 Graalvm Native JDBC cannot convert value of type 'java.sql.Timestamp' to required type 'java.time.Instant'

I implemented CRUD operations in Spring Boot. And everything works fine when I use ./gradlew bootRun. But when I run native image from ./gradlew clean nativeCompile the operations which retrieve objects from DB are failing…
0
votes
0 answers

Issue running sprinboot native application with apache camel with graalvm and native-image

I have an app running a simple route with apache camel and springboot, it compiles and runs fine when I run it as a springboot app: 2023-03-30T16:20:18.278Z INFO 104320 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools…
jak
  • 1
0
votes
0 answers

Exception encountered during context initialization in Native Spring Boot with RedisConfig

With the latest releases of Spring Boot 3.0.4, native-maven-plugin-0.9.20, and spring-boot-starter-data-redis-reactive-3.0.4 I have a Redis configuration using the RedisConfig code as shown above. @Configuration public class RedisConfig { …
0
votes
0 answers

Failed graalvm native build through quarkus with Unsupported field jdk.internal.loader.NativeLibraries.loadedLibraryNames

I am facing an issue when I am doing a native build and I am not sure where to proceed to try to resolve the issue as no where in the stack trace indicates what I have done wrong in my code. If someone can help give some pointers to help resolve…
0
votes
1 answer

Feign Client Jackson serialization/deserialization issue with Spring Boot 3 native image

I'm trying to build web app based on Spring Boot 3 and planning to run this in Kubernetes as native images. So my goal is to build native image, but it is where I got issue with Feign here. My app is using Feign client to access third party…
0
votes
0 answers

Can GraalVM compiled code call methods from other GraalVM compiled code?

I've always been interested in the idea of a polyglot framework that allows steps in a pipeline of transformations to be written in arbitrary programming languages, as long as the transforming code provided a method with the appropriate signature…
jstur
  • 659
  • 6
  • 12
0
votes
1 answer

How to embed a file into spring boot native image?

I want to put a file inside an image generated by spring boot native image. But as far as I tried to search, there's no such option (or I couldn't find it) in neither spring boot maven plugin, paketo buildpack nor graalvm itself. I found that you…
0
votes
1 answer

Spring Boot native image does not print logs when logback is configured with conditional

Summary Edit: The issue is only relevant from Spring Boot 3.0.0 to 3.0.2. It has been addressed in 3.0.3. See last section for details. I have a very simple Spring Boot 3.0.2 app with only janino as added dependency. When I use an if-else…
Henning
  • 3,055
  • 6
  • 30
0
votes
0 answers

Gluon Attach - open file system browser on Android

Writing JavaFX applications for Android, using GraalVM and gluon-maven-plugin: I am trying to open a file system location using Gluon Attach (4.0.17-SNAPSHOT) BrowserService with a file: URL. That works fine on desktop systems, but fails on Android…
taranion
  • 631
  • 1
  • 6
  • 17
0
votes
0 answers

EmbeddedKafka and GraalVM in Springboot tests

I want to use EmbeddedKafka with GraalVM using Spring boot in tests. When I run the test it goes to idle and Waiting until the timeout happens. Is there any idea how to use them together? When I run the test it goes to idle and Waiting until the…
0
votes
1 answer

Spring Boot / GraalVM native-maven-plugin failing with runtime vs build-time class initialization

I'm trying to build a native image using Spring Boot 3, referring to these docs. I'm hitting the below exception at build time: [INFO] [creator] [INFO] [creator] Error: Classes that should be initialized at run time got initialized…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195