Exception Java mongo client 2.4

32 views
Skip to first unread message

sagar

unread,
Mar 10, 2011, 11:05:21 AM3/10/11
to mongodb-user
My pc is running with mongo 1.6.5 .

One of my collections has 973525 records
when I try to find distinct key on that collection its giving me
Exception

the query is

db.collection.distinct("id")


java.lang.IllegalArgumentException: 'ok' should never be null...
at com.mongodb.CommandResult.ok(CommandResult.java:30)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:60)
at com.mongodb.DBCollection.distinct(DBCollection.java:756)
at com.mongodb.DBCollection.distinct(DBCollection.java:741)
at com.test.TestMongo$.<init>(TestMongo.scala:26)
at com.test.TestMongo$.<clinit>(TestMongo.scala)
at com.test.TestMongo.startTesting(TestMongo.scala)
at com.test.Main.main(Main.java:13)

Scott Hernandez

unread,
Mar 10, 2011, 11:54:58 AM3/10/11
to mongod...@googlegroups.com
That looks like a bug. Can create a jira issue?

http://jira.mongodb.org/

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages