java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GridFSDBFile sporadic ClassCastException
    via by Carlos Quiroz,
    • java.lang.ClassCastException: com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.casbah.gridfs.GridFSDBFileSafeJoda at com.mongodb.casbah.gridfs.GridFS.findOne(GridFS.scala:214)[org.mongodb.casbah-gridfs_2.11-2.7.1.jar:2.7.1] at com.mongodb.casbah.gridfs.GridFS.findOne(GridFS.scala:221)[org.mongodb.casbah-gridfs_2.11-2.7.1.jar:2.7.1] at com.fontyou.factory.services.FileService.findFileById(FileService.scala:46)[services.services-0.1-SNAPSHOT.jar:0.1-SNAPSHOT]
    No Bugmate found.