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

Google Groups | david kilmer | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Error in ensureIndexes() in 1.0.0

    Google Groups | 2 years ago | david kilmer
    org.mongodb.morphia.mapping.MappingException: A type could not be found for the field null.null
  2. 0

    Morphia throwing inner exception when saving basic entity

    Stack Overflow | 5 months ago | stack man
    org.mongodb.morphia.mapping.MappingException: Cannot use non-static inner class: class java.security.ProtectionDomain$Key. Please make static.

    Root Cause Analysis

    1. org.mongodb.morphia.mapping.MappingException

      A type could not be found for the field null.null

      at org.mongodb.morphia.mapping.MappedField.discoverType()
    2. Morphia
      DatastoreImpl.ensureIndexes
      1. org.mongodb.morphia.mapping.MappedField.discoverType(MappedField.java:211)
      2. org.mongodb.morphia.mapping.MappedField.<init>(MappedField.java:101)
      3. org.mongodb.morphia.mapping.EphemeralMappedField.<init>(EphemeralMappedField.java:36)
      4. org.mongodb.morphia.mapping.MappedField.discoverType(MappedField.java:189)
      5. org.mongodb.morphia.mapping.MappedField.discover(MappedField.java:117)
      6. org.mongodb.morphia.mapping.MappedField.<init>(MappedField.java:95)
      7. org.mongodb.morphia.mapping.MappedClass.discover(MappedClass.java:214)
      8. org.mongodb.morphia.mapping.MappedClass.<init>(MappedClass.java:145)
      9. org.mongodb.morphia.mapping.Mapper.getMappedClass(Mapper.java:242)
      10. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:370)
      11. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:326)
      12. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:307)
      13. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:302)
      14. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:509)
      15. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:501)
      15 frames