java.lang.ClassCastException: com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.casbah.gridfs.GridFSDBFileSafeJoda


Solutions on the web

Solution icon of googlegroups
via Google Groups by Carlos Quiroz, 9 months ago
com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.casbah.gridfs.GridFSDBFileSafeJoda

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.