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 }

GitHub | ngtandat | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 4#236615277

    GitHub | 10 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 }

    Root Cause Analysis

    1. 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 }

      at com.mongodb.connection.ProtocolHelper.getCommandFailureException()
    2. MongoDB Java Driver
      AggregateIterableImpl.iterator
      1. com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:86)
      2. com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:120)
      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.AggregateIterableImpl.iterator(AggregateIterableImpl.java:102)
      19. com.mongodb.AggregateIterableImpl.iterator(AggregateIterableImpl.java:40)
      19 frames
    3. Java RT
      Iterable.forEach
      1. java.lang.Iterable.forEach(Iterable.java:74)
      1 frame
    4. ru.qatools.selenograph
      QuotaSummaryClientNotifier.sendUpdatesToClient
      1. ru.qatools.selenograph.ext.SelenographDB.sessionsByUserCount(SelenographDB.java:163)
      2. ru.qatools.selenograph.ext.SelenographDB.getQuotasSummary(SelenographDB.java:119)
      3. ru.qatools.selenograph.gridrouter.QuotaSummaryClientNotifier.sendUpdatesToClient(QuotaSummaryClientNotifier.java:29)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor58.invoke(null)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:498)
      3 frames
    6. ru.yandex.qatools
      QuartzAggregatorSchedulerBuilder$ScheduledJob.execute
      1. ru.yandex.qatools.camelot.common.PluginAnnotatedMethodInvoker.invoke(PluginAnnotatedMethodInvoker.java:71)
      2. ru.yandex.qatools.camelot.common.builders.QuartzAggregatorSchedulerBuilder.invokeJob(QuartzAggregatorSchedulerBuilder.java:175)
      3. ru.yandex.qatools.camelot.common.builders.QuartzAggregatorSchedulerBuilder$ScheduledJob.execute(QuartzAggregatorSchedulerBuilder.java:216)
      3 frames
    7. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      2 frames