-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
MongoDB documentation improvements #8515
Conversation
/cc @geoand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some small suggestions
docs/src/main/asciidoc/mongodb.adoc
Outdated
==== | ||
If you encounter the following error when running your application in native mode: + | ||
`Failed to encode 'MyObject'. Encoding 'myVariable' errored with: Can't find a codec for class org.acme.MyVariable.` + | ||
This means that the `org.acme.MyVariable` class is not known to GraalVM, to fix this you can add the `@RegisterForReflection` annotation to your `MyVariable` class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the remedy is to add the @RegisterForReflection
annotation to your MyVariable
class.
88323ff
to
2ab610c
Compare
@geoand I applied your suggestions |
And I hadn't made any mistakes of my own 😆 ? |
Thanks for this, these are very good clarifications! |
Some improvements to the MongoDB documentation:
Can't find a codec for class
error that should be fixed via@RegisterForReflection
. Maybe this note needs to be on MongoDB with Panache as it was reported with the usage of MongoDB with Panache (all now normally fixed).