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

Stack Overflow | AdolfoV | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Translate new mongodb 3 aggregate java syntax to groovy

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

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.LinkedHashMap cannot be cast to org.bson.conversions.Bson

      at com.mongodb.AggregateIterableImpl.createBsonDocumentList()
    2. MongoDB Java Driver
      AggregateIterableImpl.iterator
      1. com.mongodb.AggregateIterableImpl.createBsonDocumentList(AggregateIterableImpl.java:156)
      2. com.mongodb.AggregateIterableImpl.execute(AggregateIterableImpl.java:126)
      3. com.mongodb.AggregateIterableImpl.iterator(AggregateIterableImpl.java:102)
      3 frames