× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
ranarohitp(*) reported 2014-04-28T07:43:20Z  · SachinPrakash last modified 2014-06-10T15:29:35Z

Throws error: {"$err" : "java.lang.NullPointerException: null"} in Mongo Shell console on executing wrong query


Dev
Sachin Prakash
SachinPrakash
QA
Jenny Nishimura
JennyNishimura
Priority Low
Complexity Unknown
Component MongoShell
Version Future - .9

Aqua Data Studio 15.0.0-dev-252
Build #: 37537
Built on: 2014-Apr-25 04:30:08 PM.
Database : Mongo 2.6.
O.S: Windows 8.

  1. Make connection to MongoDB and execute attached script.
  2. Now launch Mongoshell and execute below given script.
     db.inventory.find(  [ { qty: { $lt: 20 } }, { sale: true } ]  )
  3. You will observe that in console below given error message is displayed.
    error: {"$err" : "java.lang.NullPointerException: null"}
  4. Since the syntax of query is wrong so its not executing and throwing null pointer exception. If we execute same script in Mnogo DB shell no such message is displayed.
  5. Correct syntax will be
     db.inventory.find( { $or: [ { qty: { $lt: 20 } }, { sale: true } ] } )




     
2 attachments

Issue #11956

Closed
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017