Questions tagged [spring-native]

Spring Native supports compiling Spring applications to native images with GraalVM.

Spring Native supports compiling Spring applications to native images with GraalVM.

iIt s new experimental Spring project https://github.com/spring-projects-experimental/spring-native , that was announce in 2021 https://spring.io/blog/2021/03/11/announcing-spring-native-beta and pinned as #1 Dependency option on https://start.spring.io/

146 questions
0
votes
0 answers

How to implement a plugin architecture using Spring Boot 3 Native Image and Dynamic Classloading if possible

Plenty of java applications today contain executable code and a set of interfaces. These interfaces are then used by implementors to create a set of classes that should function when loaded into the application. However, these implemented classes…
StevenPG
  • 311
  • 4
  • 16
0
votes
1 answer

How to specify the location of a keystore file with Spring Aot Processing

I'm using Spring Boot 3.1.0 and Spring Framework 6.0.9. A keystore file is specified for JVM as follows for a JVM deployment so that the file is placed in src\main\resources\application.properties: server.ssl.bundle:…
Juergen Zimmermann
  • 2,084
  • 7
  • 29
  • 43
0
votes
1 answer

spring boot native image cannot run due to config file inside third-party lib

I'm trying spring native with a small boot project which depends on opensaml, there are two config files inside the opensaml jar, and the lib loads the config file by Thread.currentThread().getContextClassLoader().getResourceAsStream(resource) the…
geeinhub
  • 25
  • 4
0
votes
0 answers

Springboot 3.0 + with graalvm, When i run builded Image get error. why?

I don't know reason of this error. first, my background enviroments is here. springboot 3.0 gradle 7.4.2 amazone correto 17 And, below content is excuted that i've command. ./gradlew bootBuildImage -debug then, success means with text "BUILD…
박찬오
  • 1
  • 2
0
votes
1 answer

Using java AOT /native compilation with openfeign 2022.0.2

I read that starting spring-cloud 2022.0.0, you can use native compilation. I'm using 2022.0.2 (spring-cloud-starter-openfeign:4.0.2), but when I use an OpenFeign client with native compilation, I get the following…
Rik Schaaf
  • 1,101
  • 2
  • 11
  • 30
0
votes
0 answers

Spring Boot 3.1.1 Webflux Native Migration -> InvalidClassException (Subscribing to Principal)

We have a spring boot service (spring boot starter parent 3.0.5) which we are attempting to convert to run on GraalVM with Spring native mvn -Pnative spring-boot:build-image. The app exposes a simple endpoint to receive the current authenticated…
DSO
  • 1
  • 1
0
votes
0 answers

Spring Boot 3 with Native giving runtime error

spring-boot-starter-parent : 3.0.5 Native dependencies : Attached build-docker-image org.springframework.boot
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

Issue building spring native image containing new micrometer open telemetry

I am getting following error while building native image ms-demo-gw-service-1 | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'leadAggregator': Unsatisfied dependency expressed through constructor…
Ashish
  • 153
  • 1
  • 1
  • 11
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

What are the Spring Native changes from Spring Boot 2 (incubation) to Spring Boot 3?

As stated in docs: "After 3+ years of incubation in the Spring Native experimental project with Spring Boot 2, native support is moving to General Availability with Spring Framework 6 and Spring Boot 3!" But, what are the actual changes/enhancements…
tasosioan7
  • 19
  • 2
0
votes
1 answer

GraalVM Native Image Manual Proxy Configuration

We migrated an appication to GraalVM docker image, Building a Native Image Using Buildpacks. The application previously running on JDK 8 and Spring boot 2.2.0.RELEASE. We migrated to JDK-17 and SpringBoot 3.0.2 as GraalVM latest prerequisite. The…
0
votes
0 answers

SpringBoot 3 native compilation not generating bean definition for second JpaRepository and failing to start with -Dspring.aot.enabled=true

I am facing an issue with Spring Boot 3 native compilation where the project contains two JpaRepository connecting to two different datasources. The creation of the second datasource configuration depends on the first datasource and JpaRepository as…
0
votes
1 answer

Incompatible versions in spring 3 com.microsoft.azure.telemetry.TelemetrySender and org.springframework.http.ResponseEntity

APPLICATION FAILED TO START Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: com.microsoft.azure.telemetry.TelemetrySender.sendTelemetryData(TelemetrySender.java:58) The…
0
votes
1 answer

Spring 3 native compilation with multiple bean implementations for different environments

I have been evaluating the support of Spring Boot 3 for native compiling with native-image and so far I am very impressed. It has the potential to drastically reduce our cloud spend. I note in the documentation, one of the major changes is the…