-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Missing native-image reflection hint for org.springframework.data.mongodb.core.aggregation.AggregationOperation #4637
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
If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. |
Sure, here is a minimal example. If I remove mongodb from dependencies then project does not throw the mentioned exception when running native executable. |
Thank you @anguzo for the reproducer - GraalVM decides to not include |
Spring Framework is unlikely to change this code path which could introduce regressions on JVM side. I would suggest to add related hints on Spring Data side (and maybe check if other |
Given the number of projects potentially having both reactive and imperative variants manually adding those hints sounds quite cumbersome and error prone. Before we do that, do we know candidates for proxy creation during the AOT phase? If so, we could hook into the processing to add missing types based on method signatures. |
@snicoll Could you please share with Christoph if that's possible (I am not sure it is)? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Sorry, I overlooked this. I'll check with Christoph. |
I'm facing the same issue with my project. Any temp solutions are fine too. @snicoll |
@mmuthukrishnan you can always provide additional hints yourself if needed, which may help you proceed for now. Meanwhile I had another look at the sample project and once the |
The difference when |
@christophstrobl |
The dependency has now also been removed from |
Thank you @OlgaMaciaszek! Closing this one. |
Environment
Problem
I was exploring Spring Native capabilities on a project created using this settings in Spring Initializr.
Got an error:
The text was updated successfully, but these errors were encountered: