You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Garren Smith (JIRA)" <ji...@apache.org> on 2017/03/02 12:29:45 UTC

[jira] [Commented] (COUCHDB-3313) Couchdb 2.0- Unable to create document and access database through java api

    [ https://issues.apache.org/jira/browse/COUCHDB-3313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15892148#comment-15892148 ] 

Garren Smith commented on COUCHDB-3313:
---------------------------------------

In CouchDB 2.0 and above, the update_seq is no longer a number. I'm guessing this is an issue with couchdb4j. It needs to be updated to support CouchDB 2.0

> Couchdb 2.0- Unable to create document and access database through java api
> ---------------------------------------------------------------------------
>
>                 Key: COUCHDB-3313
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3313
>             Project: CouchDB
>          Issue Type: Question
>            Reporter: Vartika Jain
>
> I already have my running project on couchdb 1.6 , now I want to try couchb 2.0. I am able to create database through java api on couchdb 2.0 but unable to access it and create a new document.
> Its giving error of update_seq.
> Caused by: 
> net.sf.json.JSONException: JSONObject["update_seq"] is not a number
> The update_seq must be return as number but when we run the request
> http://192.168.1.48:5984/testing **(CouchDb 2.0)**the response is
> {"db_name":"testing","update_seq":"0-g1AAAAFTeJzLYWBg4MhgTmEQTM4vTc5ISXLIyU9OzMnILy7JAUoxJTIkyf___z8rkQGPoiQFIJlkT1idA0hdPGF1CSB19QTV5bEASYYGIAVUOp8YtQsgavcTo_YARO19YtQ-gKgFuTcLANRjby4","sizes":{"file":33952,"external":0,"active":0},"purge_seq":0,"other":{"data_size":0},"doc_del_count":0,"doc_count":0,"disk_size":33952,"disk_format_version":6,"data_size":0,"compact_running":false,"instance_start_time":"0"}
> In olderversion in response its giving an integer value.
> Whats the issue?
> using couchdb4j jar 0.1.2



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)