-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Question: Graalvm Native support - Spring boot 3.0 #2163
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
Comments
Hi @Dam14n I think we don't have any native hints yet. We have a branch for spring boot 3 support (https://github.com/codecentric/spring-boot-admin/tree/experimental/spring-boot-3-playground) and you can use our snapshot release by adding the snapshot repo: https://github.com/codecentric/spring-boot-admin#snapshot-builds If you find something that should be added to SBA directly we would be happy if you file a Pull Request with the native hints against this branch. Regards, Erik |
Hi @erikpetzold, Thanks for the fast reply! I will give it a look and I will try to submit a PR this week. Thanks! |
Hi @Dam14n , am having same trouble! What is being displayed is:
Am guessing that might be something with That is pretty weird since it only happened when we build a native image. Do you have any additional configuration, as well as native hints that might help? It should be considered if SBA is part of Spring Boot 3.0.0. Am using https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-client/3.0.0-M7 SBA client version btw. Any updates @erikpetzold ? Thank you. |
Hi @trcoelho, I didn't work on this again since I did the question due to I have other tasks with a higher priority. It was only a POC what I did but for replicating the same you can follow these steps:
Just in case, as it was only a POC I didn't set up all the hints but if it works with the files generated by the agent you should be able to recreate the necessary hints. Missing tests
Considerations
Related information to thread dump and heap dump:
I hope to have some time to work on this again next month. Thankfully due to the release of Spring boot 3 now some stuff should be easier. |
Hi. I am having the same problem ("d.c.b.a.c.r.ApplicationRegistrator : Failed to register application as Application(name=rem-authentication-service, managementUrl=http://localhost:2100/actuator, healthUrl=http://localhost:2100/actuator/health, serviceUrl=http://localhost:2100/) at spring-boot-admin ([http://localhost:2100/admin/instances]): No HttpMessageConverter for de.codecentric.boot.admin.client.registration.Application and content type "application/json"") Using the agent is not a solution, when I do this the build of my native image fails. So just wondering which hint(s) are needed to make SBA work when running native? |
Hi. |
* WIP - Spring Boot Admin Server GraalVM sample * Spring Boot Admin Server GraalVM sample * Spring Boot Admin Server GraalVM sample * Documented the Spring Boot Admin Server GraalVM sample (might be addressing #2271 and #2163) * cleanup * Added a hint to use a v17 BaseJDK GraalVM to build the sample within the docs. * Extended docs regarding native build with separate profile. * Added RuntimeHints * WIP: RuntimeHints * WIP: RuntimeHints * Removed awt from implementation of converting hex to rgb since graal cannot cope with it right now * Extended RuntimeHints * Extended RuntimeHints * Extended documentation * OCI image building + documentation * cleanup dependencies * Corrected GraalVM version * Added info endpoint configuration * Cleanup * Added build-info and general cleanup * Cleanup * Fixed checkstyle issues * Fixed documentation on image builder for common x86 architectures --------- Co-authored-by: Stephan Köninger <[email protected]>
the current snapshot (3.0.4-SNAPSHOT) now includes autoconfigurations with RuntimeHints for SBA client and server running as Spring Boot 3 native applications. You can find a running GraalVM SBA server sample (+ self registration as a client) right here: https://github.com/codecentric/spring-boot-admin/tree/master/spring-boot-admin-samples/spring-boot-admin-sample-servlet-graalvm Regards, |
来信收到,查看后会及时回复您!
|
Hi team,
First, thanks for this amazing project that you are working on!
I have been testing Spring boot 3.0 (SNAPSHOT) with Graalvm Native support and Spring Boot Admin. Running locally is working as expected but I'm having some issues when building the Docker image in native mode.
Quick question, are you planning to support graalvm configuration? like autoconfiguration for native-hints (I mean this https://docs.spring.io/spring-boot/docs/3.0.0-SNAPSHOT/reference/htmlsingle/#native-image.advanced.custom-hints) in Spring boot 3.0 or adding some reachability-metadata (if needed) in the graalvm repo.
Or is it something that we should config on our end?? thanks a lot
The text was updated successfully, but these errors were encountered: