org.mongodb.morphia.mapping.MappingException: A type could not be found for the field null.null

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 Google Groups by david kilmer, 10 months ago
A type could not be found for the field null.null
via GitHub by AceSpades
, 2 years ago
A type could not be found for the field null.null
via Stack Overflow by jwilner
, 2 years ago
A type could not be found for the field null.null
org.mongodb.morphia.mapping.MappingException: A type could not be found for the field null.null
at org.mongodb.morphia.mapping.MappedField.discoverType(MappedField.java:211)
at org.mongodb.morphia.mapping.MappedField.(MappedField.java:101)
at org.mongodb.morphia.mapping.EphemeralMappedField.(EphemeralMappedField.java:36)
at org.mongodb.morphia.mapping.MappedField.discoverType(MappedField.java:189)
at org.mongodb.morphia.mapping.MappedField.discover(MappedField.java:117)
at org.mongodb.morphia.mapping.MappedField.(MappedField.java:95)
at org.mongodb.morphia.mapping.MappedClass.discover(MappedClass.java:214)
at org.mongodb.morphia.mapping.MappedClass.(MappedClass.java:145)
at org.mongodb.morphia.mapping.Mapper.getMappedClass(Mapper.java:242)
at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:370)
at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:326)
at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:307)
at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:302)
at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:509)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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