java.lang.ClassCastException: org.bson.Document cannot be cast to org.bson.conversions.Bson

GitHub | srikanthvejendla | 5 months ago
  1. 0

    MongoException while using ExtentXReporter on local mongodb instance

    GitHub | 5 months ago | srikanthvejendla
    java.lang.ClassCastException: org.bson.Document cannot be cast to org.bson.conversions.Bson
  2. 0

    Translate new mongodb 3 aggregate java syntax to groovy

    Stack Overflow | 6 months ago | AdolfoV
    java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to org.bson.conversions.Bson
  3. 0

    Bug: listing indexes

    GitHub | 1 year ago | FeNoMeNa
    java.lang.ClassCastException: com.mongodb.BasicDBObject cannot be cast to org.bson.Document
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    listCollectionNames throws ClassCastException

    GitHub | 1 year ago | jawhiting
    java.lang.ClassCastException: org.bson.Document cannot be cast to org.bson.BsonDocument
  6. 0

    ClassCastException using Mongo datastore

    GitHub | 1 year ago | paulfairless
    java.lang.ClassCastException: org.bson.Document cannot be cast to com.mongodb.DBObject

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at com.mongodb.FindIterableImpl.<init>()
    2. MongoDB Java Driver
      MongoCollectionImpl.find
      1. com.mongodb.FindIterableImpl.<init>(FindIterableImpl.java:57)
      2. com.mongodb.MongoCollectionImpl.find(MongoCollectionImpl.java:216)
      3. com.mongodb.MongoCollectionImpl.find(MongoCollectionImpl.java:211)
      3 frames
    3. com.relevantcodes.extentreports
      Report.attach
      1. com.relevantcodes.extentreports.reporter.ExtentXReporter.setupProject(ExtentXReporter.java:193)
      2. com.relevantcodes.extentreports.reporter.ExtentXReporter.start(ExtentXReporter.java:161)
      3. com.relevantcodes.extentreports.Report.attach(Report.java:38)
      3 frames
    4. Java RT
      ReferencePipeline$Head.forEach
      1. java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      2. java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
      2 frames
    5. com.relevantcodes.extentreports
      ExtentReports.attachReporter
      1. com.relevantcodes.extentreports.ExtentReports.attachReporter(ExtentReports.java:11)
      1 frame
    6. com.samsclub.qa
      SampleTest.firstTest
      1. com.samsclub.qa.android.tests.SampleTest.firstTest(SampleTest.java:40)
      1 frame