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
1
vote
1 answer

Spring Cloud Stream Kafka Sreams app in Spring Native / GraalVM image

I've compiled my app containing a Kafka Streams stream with maven -Pnative native profile and start it with -Dspring.aot.enabled=true -Dspring.profiles.active=dev, but the start fails with the following error: Caused by:…
1
vote
0 answers

Build of native image with Spring Boot get stuck on Apple Silicon

The build with -Pnative starts and progresses successfully, but fails to complete on my Apple Silicon Mac. Any ideas what might be missing? . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/…
Andras Hatvani
  • 4,346
  • 4
  • 29
  • 45
1
vote
0 answers

Spring Native memory related issues

I want to know if I use Spring-Native, do I still need to configure what garbage collector to use, how much heap memory to set and other JVM startup parameters, do I not need to configure any of these at all? If so, then the actual memory occupied…
1
vote
1 answer

Build Spring eureka client with graalvm native-image

Am sorry as this is my first question in stack-overflow so i hope i can explain the problem correctly... Am using spring boot 3.0.1 and GraalVM CE 22.3.0 and spring cloud 2022.0.0 Am trying to build native-image of my service that using netflix…
1
vote
1 answer

How to set dependency-mapping binding in gradle bootBuildImage (Spring-boot 2.7.1, native)

I am using spring-boot 2.7.1 with native configuration as the guide follows in the link. Spring native official doc My problem is that when running bootBuildImage, the buildpack ["gcr.io/paketo-buildpacks/java-native-image:7.19.0"] is trying to…
1
vote
2 answers

Spring boot 3.0 RC1 native-maven-plugin passing arguments to native image build?

With Spring Boot 3.0 RC1 spring team decided to moved all of the graalvm native-maven-plugin configuration to spring-boot-parent...and we simply inherit the native profile. I like this move but we have lost the possibility of passing the native…
1
vote
0 answers

Spring Native - Building Docker image fails or stopped?

I am currently working on Spring Native. I'm trying to make Docker image and run the image in minikube. I ran ./gradlew clean bootBuildImage But it seems like the process has stopped. Only Executing time is changing but nothing else is. Does anyone…
Serin Heo
  • 11
  • 3
1
vote
1 answer

Cannot query the value of property 'javaLauncher' because it has no value available

Hello Guys I am new to spring native.When I try ./gradlew compileNative I get the error `* What went wrong: Execution failed for task ':nativeCompile'. Cannot query the value of property 'javaLauncher' because it has no value available.` I have…
1
vote
0 answers

org.springframework.aot.context.bootstrap.generator.BeanDefinitionGenerationException: Failed to handle bean with name 'xxx' and type 'xxx'

I want to try SpringNative. I have a custom Bean, but when I run "spring-aot:generate" or "spring-boot:build-image", I get the following exception. I don't know how to configure and add Hint Key exception information is as…
Tablo_Jhin
  • 301
  • 1
  • 3
  • 10
1
vote
0 answers

Possibility of @ConditionalOnProperty support on spring-native

This is a question for the spring-native team (asking here instead of creating an issue in github). I am trying as hard as I can to understand exactly the meaning, effects and all reasons of having to make all the preparation of the BeanFactory at…
jgslima
  • 83
  • 6
1
vote
1 answer

Are extra reflection configurations needed for custom Spring Boot starter libraries when using Spring Native?

I am in the process of building a set of shared libraries using custom Spring Boot starter auto configuration per guidance from https://docs.spring.io/spring-boot/docs/2.6.7/reference/htmlsingle/#features.developing-auto-configuration. Great feature…
1
vote
0 answers

Spring Native fails to start native app after add language:js - Error creating bean with name 'requestMappingHandlerMapping'

i've configured a spring native app which should use graalvm js interpreter to run js code. The app works fine if i build/run it with nashorn interpreter (no native, standard build). If i build it using native profile and GraalVM js interpreter it…
1
vote
0 answers

Error - jhipster-native - TypeError: contents.replaceAll is not a function

I am creating a monolith app with jhipster-native. I got the following error. ERROR! contents.replaceAll is not a function TypeError: contents.replaceAll is not a function at…
emilly
  • 53
  • 5
1
vote
0 answers

Spring-native not loading @restcontroller from dependencies

I've got a problem with Spring-native and it's not loading my RestControllers (and most likely Services) from dependencies. My project setup looks like this: I got a bunch of independent Spring Boot Applications and grouped them together in an all…
1
vote
1 answer

Azure Functions with docker: How change port?

I have built a docker image using Spring Native. The Spring Boot application inside the container listens on port 80 but crashes on Azure Functions on startup because of missing access rights (it seems docker doesn't allow usage of ports bellow…
Tobi
  • 507
  • 1
  • 5
  • 13