com.mongodb.MongoQueryException: Query failed with error code 2 and error message 'bad sort specification' on server localhost:27017]

Google Groups | srinivas seema | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    com.mongodb.MongoQueryException: Query failed with error code 2 and error message 'bad sort specification'

    Google Groups | 6 months ago | srinivas seema
    com.mongodb.MongoQueryException: Query failed with error code 2 and error message 'bad sort specification' on server localhost:27017]

    Root Cause Analysis

    1. com.mongodb.MongoQueryException

      Query failed with error code 2 and error message 'bad sort specification' on server localhost:27017

      at com.mongodb.operation.FindOperation$1.call()
    2. MongoDB Java Driver
      FindIterableImpl.forEach
      1. com.mongodb.operation.FindOperation$1.call(FindOperation.java:493)
      2. com.mongodb.operation.FindOperation$1.call(FindOperation.java:483)
      3. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:241)
      4. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:214)
      5. com.mongodb.operation.FindOperation.execute(FindOperation.java:483)
      6. com.mongodb.operation.FindOperation.execute(FindOperation.java:80)
      7. com.mongodb.Mongo.execute(Mongo.java:818)
      8. com.mongodb.Mongo$2.execute(Mongo.java:805)
      9. com.mongodb.OperationIterable.iterator(OperationIterable.java:47)
      10. com.mongodb.OperationIterable.forEach(OperationIterable.java:70)
      11. com.mongodb.FindIterableImpl.forEach(FindIterableImpl.java:158)
      11 frames
    3. com.nazara.ngdp
      ScheduleTableauJob.execute
      1. com.nazara.ngdp.TableauServiceHelper.MongoDataAccessor.readCollection(MongoDataAccessor.java:70)
      2. com.nazara.ngdp.TableauServiceHelper.ScheduleTableauJob.execute(ScheduleTableauJob.java:68)
      2 frames
    4. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
      2 frames