org.mongodb.morphia.mapping.MappingException: Cannot use non-static inner class: class java.security.ProtectionDomain$Key. Please make static.

Stack Overflow | stack man | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 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.
  2. 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

    Root Cause Analysis

    1. org.mongodb.morphia.mapping.MappingException

      Cannot use non-static inner class: class java.security.ProtectionDomain$Key. Please make static.

      at org.mongodb.morphia.mapping.MappedClass.basicValidate()
    2. Morphia
      DatastoreImpl.ensureIndexes
      1. org.mongodb.morphia.mapping.MappedClass.basicValidate(MappedClass.java:495)
      2. org.mongodb.morphia.mapping.MappedClass.<init>(MappedClass.java:123)
      3. org.mongodb.morphia.mapping.Mapper.getMappedClass(Mapper.java:451)
      4. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      5. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      6. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      7. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      8. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      9. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      10. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      11. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      12. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      13. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      14. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      15. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      16. org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545)
      17. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185)
      18. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1167)
      19. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1189)
      20. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:274)
      21. org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:266)
      21 frames
    3. repositories
      UsersRepository.main
      1. repositories.UsersRepository.createUser(UsersRepository.java:65)
      2. repositories.UsersRepository.main(UsersRepository.java:101)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame