org.springframework.data.mapping.model.MappingException: Cannot create a reference to an object with a NULL id.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by zhsyourai
, 2 years ago
No id property found on class class [Ljava.lang.Integer;
via Spring JIRA by Zhu Hongshang, 1 year ago
No id property found on class class [Ljava.lang.Integer;
via Spring JIRA by Zhu Hongshang, 1 year ago
No id property found on class class [Ljava.lang.Integer;
org.springframework.data.mapping.model.MappingException: Cannot create a reference to an object with a NULL id.
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.createDBRef(MappingMongoConverter.java:800)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.