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 load custom property file located inside a folder in resources in graalvm native image?

I am migrating an existing spring boot project to spring boot native project. In my native spring boot project I have a property file alternate.properties in the location: resources/config/prod/alternate.properties. This file is manually being…
0
votes
0 answers

Spring Authorization Server tokenValue cannot be empty in graalvm native image

I am trying to compile the federated example with graalvm. After login with a custom oidc provider, the deserialization of the class org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser fails with the following…
0
votes
1 answer

Graal VM build error: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null

Getting following error while running native graal build for my Spring boot project (migrating to Graal VM). I could not find any working answer to this problem anywhere. Requesting the community to help. java.lang.NullPointerException: Cannot…
Anurag Ambuj
  • 101
  • 1
  • 7
0
votes
0 answers

Database Connection fails when running native docker image

I have a Java 17 Spring Boot 3 app. Building with mvn package and then running with mvn spring-boot:run works fine. Now I want to build a native docker image. Building it with mvn spring-boot:native-image -Pnative works but when I try to run it with…
Henrik
  • 41
  • 3
0
votes
0 answers

springnative running the nativeBuild it throws "java.lang.ClassNotFoundException: com.mysql.cj.PerConnectionLRUFactory"

os:centos7 springboot:3.1.1 application.yml: spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url:…
0
votes
0 answers

Spring Aot & native & FactoryBean

Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface io.github.llnancy.dailyhot.client.BaiduExchangeClient, interface org.springframework.aop.SpringProxy, interface…
0
votes
0 answers

Does GraalVM native image support xml based spring context initialisation?

I am working on a spring boot application with apache camel which uses applicationContext.xml to initialise the spring context. I want to convert this spring boot app to spring native image, i want to understand how would the spring ahead of time…
0
votes
1 answer

processAot fails on bean definition from Kotlin bean DSL

I have bean DSL as follows: class BeansInitializer : ApplicationContextInitializer { override fun initialize(applicationContext: GenericApplicationContext) { beans { bean { …
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
0 answers

Can't find bundle for base name org.eclipse.persistence.exceptions.i18n.EntityManagerSetupExceptionResource, locale en_US running native docker image

You can check out this repo to reproduce the error ourself: https://github.com/vanonnahenrik/demo-service I have a Spring Boot 3.0.4 app, running it with spring-boot:run works fine, but when I build the docker image with mvn clean…
Henrik
  • 41
  • 3
0
votes
1 answer

Spring boot Native Graalvm + Redis Error creating bean RedisConnection

I am building spring boot native app with redis. named: systemparam. spring boot 3.1, gradle lettuce as connection factory graalvm-ce-java17-22.3.2 build.gradle plugins { id 'java' id 'org.springframework.boot' version '3.1.0' id…
Raey Juve
  • 1
  • 1
0
votes
1 answer

Register RuntimeHints for Collections EmptyList class not working

I have the following method and a Cacheable annotation on top of that. @Cacheable(value = "autosuggest", key = "#term", unless = "#result.size()==0") @Override public List autoSuggestUsers(String term) { if…
Ladu anand
  • 646
  • 2
  • 8
  • 30
0
votes
1 answer

Spring Boot Native: Error withe the ' jasypt-spring-boot' module

I am trying to create a native executable from my Spring Boot 3.0.7 app (Java 17) using GraalVM. I am using GraalVM in a Docker build to create the native executable. I am using the "jasypt-spring-boot" (3.0.5) library to store the required app…
Ben
  • 290
  • 2
  • 17
0
votes
1 answer

Error when running Spring Native with GraalVM: Cannot load optional framework class

Spring-native(Spring-boot3.0.5):Override calss ClassPathBeanDefinitionScanner run error when use AOT Spring-boot version:3.0.5 I define a new class extende ClassPathBeanDefinitionScanner: lang=java public class RpcComponentScanner extends…
0
votes
1 answer

how i can externalize configuration in spring boot native

We are using k8s as deployment environment, in current spring boot projects we are mounting k8s config maps into container. And start jar with mounted application.yml file. spring out of box support merging projects default application.yml and…
Maciavelli
  • 101
  • 1
  • 14
0
votes
0 answers

how to add additional reachability metadata when working with native:compile

I have a Spring Boot project that depends on a local JAR package. This local JAR package uses a lot of reflections, in order to package my app to native image, I generated reachability metadata (by using tracing agent) for it. I use the…
fish
  • 79
  • 1
  • 6