org.bson.Document cannot be cast to org.bson.conversions.Bson

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

Stack trace

  • java.lang.ClassCastException: org.bson.Document cannot be cast to org.bson.conversions.Bson at com.mongodb.FindIterableImpl.<init>( at com.mongodb.MongoCollectionImpl.find( at com.mongodb.MongoCollectionImpl.find( at com.relevantcodes.extentreports.reporter.ExtentXReporter.setupProject( at com.relevantcodes.extentreports.reporter.ExtentXReporter.start( at com.relevantcodes.extentreports.Report.attach( at java.util.Spliterators$ArraySpliterator.forEachRemaining( at$Head.forEach( at com.relevantcodes.extentreports.ExtentReports.attachReporter( at

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

We couldn't find other users who have seen this exception.