java.lang.ClassCastException

com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.casbah.gridfs.GridFSDBFileSafeJoda

Solutions on the web19030

  • via Google Groups by Carlos Quiroz, 6 months ago
    com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.casbah.gridfs.GridFSDBFileSafeJoda
  • com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.BasicDBObject
  • via iteye.com by Unknown author, 1 year ago
    cannot be cast to
  • Stack trace

    • 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]

    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 are the first who have seen this exception. Write a tip to help other users and build your expert profile.