MongoDb CommandFailureException error -
i run following mongodb error after change application data related code , altering data yesterday. after reverting code , dropping data based, error don't occur somehow. today, run same error when run unit tests while application running fine.
caused by: com.mongodb.commandfailureexception: { "serverused" : "127.0.0.1:52391" , "errmsg" : "exception: syntaxerror: unexpected string" , "code" : 16722 , "ok" : 0.0} @ com.mongodb.commandresult.getexception(commandresult.java:76) @ com.mongodb.commandresult.throwonerror(commandresult.java:140) @ com.mongodb.db.eval(db.java:464) @ org.mongeez.dao.mongeezdao.runscript(mongeezdao.java:124) @ org.mongeez.commands.script.run(script.java:32) @ org.mongeez.changesetexecutor.execute(changesetexecutor.java:53) @ org.mongeez.changesetexecutor.execute(changesetexecutor.java:42) @ org.mongeez.mongeez.process(mongeez.java:40)
how clean error?
you have bad script in 1 of mongeez database migration files. since mongeez won't run changesets applied again, exception won't occur unless changeset error not applied yet.
Comments
Post a Comment