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

GitHub | srikanthvejendla | 3 months ago
  1. 0

    MongoException while using ExtentXReporter on local mongodb instance

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

    How to map in Morphia (MongoDB) field that is an arbitrarily nested document?

    Stack Overflow | 6 months ago | Serge Nikitin
    java.lang.ClassCastException: org.bson.Document cannot be cast to java.util.List
  3. 0

    Translate new mongodb 3 aggregate java syntax to groovy

    Stack Overflow | 4 months ago | AdolfoV
    java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to org.bson.conversions.Bson
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to map a field that is an arbitrarily nested document?

    GitHub | 6 months ago | serge-nikitin
    java.lang.ClassCastException: org.bson.Document cannot be cast to java.util.List
  6. 0

    Bug: listing indexes

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

    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