ClassNotFoundException when using lazy option of @Reference #3170
Closed
TomCapelle
started this conversation in
General
Replies: 2 comments 4 replies
-
It's weird that it can find other classes in that same jar. Is there not a "caused by" clause further down the stack? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi, I'm just updating this discussion, I tried to reproduce this issue in a minimal setup (i.e just a main function), and it worked. So the issue is definitely somewhere in my project. Sorry for bothering you ! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi !
First of all, I wanted to thank @evanchooly & contributors for this handy mongo ODM.
Therefore, I encounter an issue when I try to query an Entity declared as follows
Let's say I'm performing a query such as
I get this error:
This
Caused by: java.lang.ClassNotFoundException: dev.morphia.mapping.codec.references.MorphiaProxy
is quite disturbing. All my dependencies are bundled in the final jar so in theory, it should be present.I am using morphia-core v2.4.14 (latest this day I think).
I see in this documentation (https://morphia.dev/morphia/2.4/references.html) that the experimental API for references is not documented anymore, I don't know if using it would fix my problem.
Thanks by advance for any help provided.
Beta Was this translation helpful? Give feedback.
All reactions