Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Support Graalvm: org.springframework.experimental:spring-native #787

Open
coderDem opened this issue Sep 16, 2021 · 1 comment
Open

Support Graalvm: org.springframework.experimental:spring-native #787

coderDem opened this issue Sep 16, 2021 · 1 comment
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@coderDem
Copy link

coderDem commented Sep 16, 2021

Hello,

we want to use the native image of spring boot to use GraalVM: https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/ and have an fast startime.

Our problem is that if we add the library we add also atomatic the SqsConfiguration.
If we try to build the image we get this error:

Execution failed for task ':generateAot'.
> ERROR: in 'org.springframework.cloud.aws.messaging.config.annotation.SqsConfiguration' these methods are directly invoking methods marked @Bean: [simpleMessageListenerContainer] - due to the enforced proxyBeanMethods=false for components in a native-image, please consider refactoring to use instance injection. If you are confident this is not going to affect your application, you may turn this check off using -Dspring.native.verify=false.

If we look in the class:
https://github.com/spring-cloud/spring-cloud-aws/blob/main/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/config/annotation/SqsConfiguration.java

It has not the annotation:
@Configuration(proxyBeanMethods = false)

But if we look in other configs like https://github.com/spring-cloud/spring-cloud-aws/blob/main/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/config/annotation/SqsClientConfiguration.java

It has the annotation:
@Configuration(proxyBeanMethods = false)

Have somebody an idea how solve the issue?

@github-actions github-actions bot added the status: waiting-for-triage An issue we've not yet triaged label Sep 16, 2021
@coderDem coderDem changed the title Support Graalvm Support Graalvm: org.springframework.experimental:spring-native Sep 16, 2021
@marcelovbm
Copy link

I'm with the same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: waiting-for-triage An issue we've not yet triaged
Development

No branches or pull requests

2 participants