java.lang.ClassCastException

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


Solutions on the web19514

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

Solution icon of github
com.mongodb.gridfs.GridFSDBFile cannot be cast to com.mongodb.BasicDBObject

Solution icon of web
via iteye.com by Unknown author, 1 year ago
cannot be cast to

Solution icon of bugzilla
[...] cannot be cast to org.eclipse.zest.core.viewers.IGraphEntityContentProvider

Solution icon of bugzilla
via Eclipse Bugzilla by error-reports-inbox, 1 year ago
cannot be cast to org.eclipse.wst.jsdt.internal.core.PackageFragmentRoot

Solution icon of web
cannot be cast to java.lang.String

Solution icon of web
cannot be cast to java.lang.String

Solution icon of youtrack
via YouTrack by Unknown author, 1 year ago
cannot be cast to com.jetbrains.upsource.backend.server.core.tree.DbFileTreeNodeBase

Solution icon of googlegroups
via Google Groups by Clint Gilbert, 7 months ago
scala.None$ cannot be cast to

Solution icon of web
via oracle.com by Unknown author, 1 year ago
cannot be cast to javax.servlet.Filter

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.