java.lang.RuntimeException

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

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 web39991

  • java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject
  • java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject
  • via Google Groups by Aaron Fabbri, 1 month ago
    java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject
  • Stack trace

    • java.lang.RuntimeException: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject at org.mongodb.morphia.mapping.EmbeddedMapper.fromDBObject(EmbeddedMapper.java:173) at org.mongodb.morphia.mapping.Mapper.readMappedField(Mapper.java:642) at org.mongodb.morphia.mapping.Mapper.fromDb(Mapper.java:617) at org.mongodb.morphia.mapping.Mapper.fromDBObject(Mapper.java:310) at org.mongodb.morphia.query.MorphiaIterator.convertItem(MorphiaIterator.java:87) at org.mongodb.morphia.query.MorphiaIterator.processItem(MorphiaIterator.java:73) at org.mongodb.morphia.query.MorphiaIterator.next(MorphiaIterator.java:68) at org.mongodb.morphia.query.QueryImpl.get(QueryImpl.java:421) at org.mongodb.morphia.DatastoreImpl.get(DatastoreImpl.java:739)[...] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.DBObject at org.mongodb.morphia.mapping.EmbeddedMapper.fromDBObject(EmbeddedMapper.java:162) ... 9 more

    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

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago