org.springframework.data.mapping.model.MappingException: No mapping metadata found for class java.lang.Integer

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Matej Zachar, 1 year ago
No mapping metadata found for class java.lang.Integer
via Spring JIRA by Matej Zachar, 1 year ago
No mapping metadata found for class java.lang.Integer
via Spring JIRA by Marcin Kowalski, 1 year ago
No mapping metadata found for class com.mongodb.BasicDBObject
via Spring JIRA by Marcin Kowalski, 1 year ago
No mapping metadata found for class com.mongodb.BasicDBObject
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: No mapping metadata found for class java.lang.Integer
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.createDBRef(MappingMongoConverter.java:729)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.toDBRef(MappingMongoConverter.java:288)
at org.springframework.data.mongodb.core.convert.QueryMapper.convertAssociation(QueryMapper.java:272)
at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedValue(QueryMapper.java:203)
at org.springframework.data.mongodb.core.convert.QueryMapper.getMappedObject(QueryMapper.java:114)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1479)

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

Write tip

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