You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Kundera to do the persistence in MongoDB. I can persist some documents in my collection, but everytime that I try to find a specific document by id, I get this error
java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.BasicDBList com.impetus.kundera.persistence.AbstractEntityReader.findById(AbstractEntityReader.java:95) com.impetus.client.mongodb.MongoEntityReader.findById(MongoEntityReader.java:72) com.impetus.kundera.lifecycle.states.ManagedState.handleFind(ManagedState.java:com.impetus.kundera.graph.Node.find(Node.java:500) com.impetus.kundera.persistence.PersistenceDelegator.find(PersistenceDelegator.java:225) com.impetus.kundera.persistence.PersistenceDelegator.findById(PersistenceDelegator.java:174) com.impetus.kundera.persistence.EntityManagerImpl.find(EntityManagerImpl.java:263)
The text was updated successfully, but these errors were encountered:
I'm using Kundera to do the persistence in MongoDB. I can persist some documents in my collection, but everytime that I try to find a specific document by id, I get this error
java.lang.ClassCastException: java.lang.String cannot be cast to com.mongodb.BasicDBList com.impetus.kundera.persistence.AbstractEntityReader.findById(AbstractEntityReader.java:95) com.impetus.client.mongodb.MongoEntityReader.findById(MongoEntityReader.java:72) com.impetus.kundera.lifecycle.states.ManagedState.handleFind(ManagedState.java:com.impetus.kundera.graph.Node.find(Node.java:500) com.impetus.kundera.persistence.PersistenceDelegator.find(PersistenceDelegator.java:225) com.impetus.kundera.persistence.PersistenceDelegator.findById(PersistenceDelegator.java:174) com.impetus.kundera.persistence.EntityManagerImpl.find(EntityManagerImpl.java:263)
The text was updated successfully, but these errors were encountered: