mongo query debug exception