com.mongodb.MongoCommandException: Command failed with error 15990: 'exception: this object is already an operator expression, and can't be used as a document expression (at 'then')' on server 192.168.1.127:27017. The full response is { "errmsg" : "exception: this object is already an operator expression, and can't be used as a document expression (at 'then')", "code" : 15990, "ok" : 0.0 }

Stack Overflow | radhakrishnan | 2 months ago
  1. 0

    MongoDB Aggregation command to Java code

    Stack Overflow | 2 months ago | radhakrishnan
    com.mongodb.MongoCommandException: Command failed with error 15990: 'exception: this object is already an operator expression, and can't be used as a document expression (at 'then')' on server 192.168.1.127:27017. The full response is { "errmsg" : "exception: this object is already an operator expression, and can't be used as a document expression (at 'then')", "code" : 15990, "ok" : 0.0 }
  2. 0

    GitHub comment 4#236615277

    GitHub | 4 months ago | ngtandat
    com.mongodb.MongoCommandException: Command failed with error 15981: 'exception: the $unwind field path must be specified as a string' on server localhost:27017. The full response is { "errmsg" : "exception: the $unwind field path must be specified as a string", "code" : 15981, "ok" : 0.0 }: Command failed with error 15981: 'exception: the $unwind field path must be specified as a string' on server localhost:27017. The full response is { "errmsg" : "exception: the $unwind field path must be specified as a string", "code" : 15981, "ok" : 0.0 }
  3. 0

    add support for dateToString expression

    GitHub | 11 months ago | parvanov
    com.mongodb.MongoCommandException: Command failed with error 18629: '$dateToString only supports an object as its argument' on server localhost:27018. The full response is { "ok" : 0.0, "errmsg" : "$dateToString only supports an object as its argument", "code" : 18629 }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 314#184535672

    GitHub | 10 months ago | jimzucker
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='dashboard', password=, mechanismProperties={}}
  6. 0

    GitHub comment 17#172569668

    GitHub | 11 months ago | sboesebeck
    java.lang.RuntimeException: de.caluga.morphium.driver.MorphiumDriverException: internal error

    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. com.mongodb.MongoCommandException

      Command failed with error 15990: 'exception: this object is already an operator expression, and can't be used as a document expression (at 'then')' on server 192.168.1.127:27017. The full response is { "errmsg" : "exception: this object is already an operator expression, and can't be used as a document expression (at 'then')", "code" : 15990, "ok" : 0.0 }

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      AggregateIterableImpl.forEach
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:115)
      2. com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:114)
      3. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:159)
      4. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:286)
      5. com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:173)
      6. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:215)
      7. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:206)
      8. com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:112)
      9. com.mongodb.operation.AggregateOperation$1.call(AggregateOperation.java:227)
      10. com.mongodb.operation.AggregateOperation$1.call(AggregateOperation.java:223)
      11. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
      12. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:212)
      13. com.mongodb.operation.AggregateOperation.execute(AggregateOperation.java:223)
      14. com.mongodb.operation.AggregateOperation.execute(AggregateOperation.java:65)
      15. com.mongodb.Mongo.execute(Mongo.java:772)
      16. com.mongodb.Mongo$2.execute(Mongo.java:759)
      17. com.mongodb.OperationIterable.iterator(OperationIterable.java:47)
      18. com.mongodb.OperationIterable.forEach(OperationIterable.java:70)
      19. com.mongodb.AggregateIterableImpl.forEach(AggregateIterableImpl.java:117)
      19 frames
    3. threadpack
      queryBtDates.main
      1. threadpack.queryBtDates.main(queryBtDates.java:88)
      1 frame