1

I am using CoucheDB2.0 and got below error message

Text:CHARACTER:net.sf.json.JSONException: JSONObject["update_seq"] is not a number.

while below line was executed -

Database studentCouchDb = studentDbSession.getDatabase("mycompany");

I am using couchdb4j-0.1.2.jar along with other dependent jars.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189

1 Answers1

0

In CouchDB 2.0, the update_sequence was changed from a number to any valid JSON object. It sounds like your CouchDB library doesn't understand this, and is still expecting a number.

I suggest updating to the latest CouchDB driver, or filing an issue with its author/vendor if necessary.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
  • thanks for your reply... i tried this.. but did not get a latest jar which can solve the issue. so I downgraded the couchDB version and it works fine now with existing jar file. – Firoj Badsa Mar 01 '17 at 06:16
  • If you found the answer helpful, you are encouraged to up-vote and accept it. – Jonathan Hall Mar 01 '17 at 10:23