-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
@Query with sort does not work in Native Image (Unexpected AOP exception) #4744 #4900
Comments
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem but at least please post the full stack trace. |
Hi mp911de, https://drive.google.com/file/d/1wCXZeII--aQwl_J-dRFfWa12a-6pM8-k/view?usp=sharing Link to the code above. gradle :microservices:product-service:bootBuildImage && docker compose -f docker-compose-app-native.yml up Uncomment line 11 @native-query-error/microservices/product-service/src/main/java/com/stillwaters/playground/microservices/core/product/persistence/ProductRepository.java for it throw exception. Below is the complete trace
Thanks in advance |
Thanks a lot. Your Spring Data MongoDB version is |
Thanks for the quick response. This is for spring-boot-starter-data-mongodb-reactive. The reference to #4744 was to give you some context. But this is for spring data mongodb reactive |
The difference between MongoDB starters is which driver dependencies are used. Both reactive and non-reactive starters use Spring Data MongoDB. In any case, the version of your dependencies do not contain the fix, you will have to upgrade to obtain the fix. |
My bad, but i dont get it. What should i upgrade to, this is my dpendency "implementation 'org.springframework.boot:spring-boot-starter-data-mongodb-reactive' Are u suggesting i upgrade spring boot and if yes to which version. |
You can either upgrade individual dependency versions (e.g. Spring Data, Spring Data MongoDB) or your entire Spring Boot stack to e.g. Spring Boot 3.4 (see https://docs.spring.io/spring-boot/appendix/dependency-versions/coordinates.html). |
@query with sort does not work in Native Image (Unexpected AOP exception) #4744 with mongo reactive. Get the identical error.
The text was updated successfully, but these errors were encountered: