Criteria throwing a lot of PropertyReferenceException #4875
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: invalid
An issue that we don't feel is valid
Our app uses Spring boot 3.3.6 and have the following scenario:
Model:
We need to query this collection on database every 10 seconds, so we wrote a dao for it:
This works, I receive data from getStorage which matches the query I passed. However I see a lot of PropertyReferenceException are being thrown (If I add a breakpoint to this exception), with the messages as follows:
The exceptions are throwed manly from two places:
For every service call, more than 100 of this exceptions are being throwed. On our actual app, more than 100k exception are being throwed / GC, which is consuming a lot of unecessary resources.
What am I doing wrong here?
Code for reference: https://github.com/felipeissa/mongo-db-exception
Spring boot version: 3.3.6
Spring data mongodb version: 4.3.6
Java version: 21
The text was updated successfully, but these errors were encountered: