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

Spring Boot Build Native Error during Compilation

Error Logs and Explannation Hello I´ve installed boot native support and I am receiving an error. This post is more to support and give information for the technical team to improve this beta version. The project compiles without problem if we run…
0
votes
0 answers

Build failure - No instances of com.fasterxml.jackson.core.io.SerializedString are allowed in the image heap

I am working on switching a module inside an existing spring-boot project to use spring native. My nativeBuild is failing with the error below. Fatal error:com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while…
0
votes
1 answer

Set Local GraalVM JDK in Spring Boot Native

Whenever i run the gradle task bootBuildImage, GraalVM JDK is downloaded for every new project as the console states below: Downloading…
0
votes
1 answer

Spring cloud function does not work with spring native

I have been trying to replicate this aws function example to deploy a lambda with spring cloud function and graalvm. The function works locally and starts up without a problem. ❯ ./demo 2021-05-10 15:56:17.964 INFO 10764 --- [ main]…
0
votes
1 answer

Spring native - CustomAuthenticationManager (ReactiveAuthenticationManager)

I am not able to make the native image work. I have my custom Reactive Authentication Manager and everything works fine when I run the service with mvn spring-boot:run. But when I create the container with the native image, and I run it, I get the…
0
votes
2 answers

Runtime error DnsServerAddressStreamProviders$DefaultProviderHolder for GraalVM native image

Im trying to build a native image for spring cloud gateway using GraalVM. I've managed to build a native image that can bootup but at the first http request I get this error: java.lang.NoClassDefFoundError: Could not initialize class…
0
votes
1 answer

Spring Native issue when connecting to mongodb

My spring application uses mongodb for persistence. The application connects to mongodb using username/password. To find benefits of Spring Native, I have created a docker image on my Ubuntu 18 LTS. When I run the app image and mongodb image using…
Chir
  • 671
  • 1
  • 10
  • 29
0
votes
0 answers

Error: Could not find option 'InlineBeforeAnalysis'

Anyone knows the error "Error: Could not find option 'InlineBeforeAnalysis'"?? I am getting that error when I try to generate the image using spring-native. Error: Could not find option 'InlineBeforeAnalysis'. Use -H:PrintFlags= to list all…
0
votes
1 answer

how spring native run without jvm

How Spring native can run an application coded in java without JVM, from https://spring.io/blog/2021/03/11/announcing-spring-native-beta: In practice, that means that in addition to the regular Java Virtual Machine supported by Spring since its…
Ram Sharan Mittal
  • 526
  • 2
  • 7
  • 16
-1
votes
1 answer

How to build native image with Spring Boot 3.x without Oracle Graalvm, and without oracle license

As you know, Oracle has changed its license policy, so that the bill can be very aggressive for large companies. We can use alternate free JDK for java compilation and runtime, but what about building native executables with Spring Boot 3. afaik,…
-2
votes
1 answer

GraalVM Heap Size Setting Recommendations

What is the usual recommended heap memory setting for a production environment, 1 microservice written in Java, if compiled as a native image using GraalVM Community Edition? Should I specify both -xms and -xms to keep the minimum heap and maximum…
李志博
  • 55
  • 5
1 2 3
9
10