-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpringBoot 3.0.2 + Spring Cloud 2022.0.1 + Native / GraalVM / AOT: application.yml information not taken into account #2644
Comments
@patpatpat123 We are not able to reproduce the issue quickly. We created a sample that works all the way from regular JVM mode to native here. Could you go through these steps and make sure that it works for you? Please try to reproduce the issue that you are seeing against this app. That way, it is easier for us to triage it further. |
Thank you @sobychacko for the answer and the sample. You are using:
while I am using
(note: this property is a valid property found in Spring Cloud Stream documentation) While using
I believe there is an issue where, the spring.kafka.* properties would work for Spring Cloud Stream applications both native and classic. However, Is there a way to propose a registrar or a fix to keep working with please? If this is expected, can there be some documentation on which spring cloud Thank you |
@patpatpat123 Thank you for the details. Indeed the |
Many thanks @sobychacko for the fix. Indeed, it is working now. |
It will be part of the |
Marked on my calendar. Many thanks @sobychacko ! |
Hello Spring Cloud Stream team,
This is my first post in this repo, if not anything, many thanks for this project.
This project is very interesting, easy to use, easy to understand, the Youtube talks from Spring team are interesting to watch.
Just wanted to reach out regarding an issue with GraalVM / Spring Native / AOT please.
So far, it is 100% reproducible.
I have a piece of code, very straightforward, type "minimal reproducible example"
the code
the pom
the application.yml.
If I build this "the old fashion way" using
mvn clean install
, I get a jar, I run the jar, everything works fine.I can see the consumer connecting the endpoint I mentioned, (int my example mykafka.com:9092) get the proper ssl certificate, etc.
So far so good.
Now, I have been trying to use the new AOT / GraalVM / Spring native.
I build the exact same project running
mvn -Pnative native:compile
, no code change at all. As a result, I do see the executable.However, when I launch the executable, it is trying to connect to local host (despite me having the property set in application.yml)
Besides the host, it is like no other properties from application.yml are taken into account.
This is 100% reproducible with native image.
Could you please help on this issue?
Thank you
The text was updated successfully, but these errors were encountered: