java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject

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

    Problems when persisting pojos with propertiets of delcared type "java.lang.Object"

    Google Groups | 1 year ago | Tom
    java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to com.mongodb.DBObject

      at org.mongodb.morphia.mapping.EmbeddedMapper.fromDBObject()
    2. Morphia
      DatastoreImpl.get
      1. org.mongodb.morphia.mapping.EmbeddedMapper.fromDBObject(EmbeddedMapper.java:162)
      2. org.mongodb.morphia.mapping.EmbeddedMapper.fromDBObject(EmbeddedMapper.java:173)
      3. org.mongodb.morphia.mapping.Mapper.readMappedField(Mapper.java:642)
      4. org.mongodb.morphia.mapping.Mapper.fromDb(Mapper.java:617)
      5. org.mongodb.morphia.mapping.Mapper.fromDBObject(Mapper.java:310)
      6. org.mongodb.morphia.query.MorphiaIterator.convertItem(MorphiaIterator.java:87)
      7. org.mongodb.morphia.query.MorphiaIterator.processItem(MorphiaIterator.java:73)
      8. org.mongodb.morphia.query.MorphiaIterator.next(MorphiaIterator.java:68)
      9. org.mongodb.morphia.query.QueryImpl.get(QueryImpl.java:421)
      10. org.mongodb.morphia.DatastoreImpl.get(DatastoreImpl.java:739)[...]
      10 frames