-
Notifications
You must be signed in to change notification settings - Fork 353
SimpleMongoRepository - No suitable constructor found #1487
Comments
@atyamlalithya this sounds like a duplicate of #1457. Unfortunately, we never got feedback from the report. Can you please attach a small sample that reproduces the issue so that we ca run this ourselves? You can do so by attaching a zip to this issue or sharing a link to a GitHub repository. EDIT: apologizes,I didn't see the link to the sample. |
@snicoll Yes the attached zip is a sample for this issue. Please let me know if you need more information to reproduce the issue. Thanks! |
Hi @sdeleuze I have the exact same issue just using Cassandra repository. org.springframework.boot: 2.6.4. Any solution or workarround?
|
A workaround would be to add the hints manually. |
Cassandra is currently not supported, and since we are focusing most of our effort on Spring Boot 3, we are unlikely to provide such support in Spring Native unless you provide a PR, getting inspiration from other Spring Data supported technologies. |
Hi @atyamlalithya and @sdeleuze Thank you both for that. I looked at the hint code for MongoDB and made a similar hint class for Cassandra. That made the error go away, but I have not been able to test it as I'm now struggling with this: #1053 (comment) |
@bechhansen as I've indicated there, please create a separate issue once you have a small sample we can use to reproduce. |
@snicoll thank you. I'm currently working on that. I have not yet found the smoking gun, coursing this issue. I'm trying to convert an existing service, with some dependencies probable responsible for the issue. I have tried a small service made using the Spring Initializr and that works . |
I am trying to create a native executable using gaarlvm for my spring boot application that uses @EnableMongoRepositories to scan its repositories.
The build is successful and it is working fine as a spring boot application but running the exe file is throwing below exception. Also attaching a sample for reproducing the issue.
demo.zip
Error stacktrace:
The text was updated successfully, but these errors were encountered: