org.mongodb.morphia.mapping.MappingException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • Cannot use non-static inner class: class java.security.ProtectionDomain$Key. Please make static.
  • Embedded element isn't a DBObject! How can it be that is a class java.lang.String
  • Stack trace

    • 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(MappedClass.java:495) at org.mongodb.morphia.mapping.MappedClass.<init>(MappedClass.java:123) at org.mongodb.morphia.mapping.Mapper.getMappedClass(Mapper.java:451) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.processEmbeddedAnnotations(DatastoreImpl.java:1545) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1185) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1167) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:1189) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:274) at org.mongodb.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:266) at repositories.UsersRepository.createUser(UsersRepository.java:65) at repositories.UsersRepository.main(UsersRepository.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.