Hi,
I have one doubt. please reply me.
{
"_id" : { "$oid" : "509b5599aae5057475681319"} , "id" : 1 , "subcatid" :
3001 , "prodid" : 5001 , "prodname" : "Odonil Jasmine" , "path" :
"sites/default/files/odonil-
jasmine.jpg" , "merchant-1" : 2}
this is my mongodb answer..I want to take prodid. only using in java.
Example :
I used a java code that is : String ss = (String)cursor.next.get("prodid");
It through exceptions.
Exception in thread "main" java.lang.RuntimeException: no more
at com.mongodb.DBApiLayer$Result.next(DBApiLayer.java:387)
at com.mongodb.DBApiLayer$Result.next(DBApiLayer.java:353)
at com.mongodb.DBCursor._next(DBCursor.java:441)
at com.mongodb.DBCursor.next(DBCursor.java:521)
at com.chm.mongo.mongo.ProductMongo1.getCheck1(ProductMongo1.java:62)
at com.chm.mongo.mongo.ProductMongo1.main(ProductMongo1.java:153)
Anybody help to me.
Thanks,
Prem