com.almworks.sqlite4java.SQLiteException: [2067] DB[1] step() [INSERT INTO "revs"(parent,current,deleted,revid,available,json,doc_id) VALUES (?,?,?,?,?,?,?)]DB[1][C] [UNIQUE constraint failed: revs.doc_id, revs.revid]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by tomblench
, 1 year ago
[2067] DB[1] step() [INSERT INTO "revs"(parent,current,deleted,revid,available,json,doc_id) VALUES (?,?,?,?,?,?,?)]DB[1][C] [UNIQUE constraint failed: revs.doc_id, revs.revid]
via GitHub by dhalperi
, 2 years ago
[261] DB[3] prepare() select * from [test#test#testtable] [database is locked]
via Stack Overflow by Rob
, 2 years ago
[1] DB[2] prepare() SELECT version, upgraded FROM dbVersion ORDER BY upgraded DESC LIMIT 1; [no such table: dbVersion]
via GitHub by stbychkov
, 1 year ago
[1] DB[1] prepare() insert into Level_1 () default values [near ")": syntax error]
via GitHub by Vinoth7
, 1 year ago
[19] DB[1] step() [INSERT INTO `Currency`(`symbol`,`shortName`,`name`) VALUES (?,?,?)]DB[1][C] [column symbol is not unique]
via GitHub by jophde
, 2 years ago
[1802] DB[1] step() [INSERT OR REPLACE INTO "en_US"(Key, Value, Dirty) VALUES ('foo', 'bar', 0);]DB[1][C] [disk I/O error]
com.almworks.sqlite4java.SQLiteException: [2067] DB[1] step() [INSERT INTO "revs"(parent,current,deleted,revid,available,json,doc_id) VALUES (?,?,?,?,?,?,?)]DB[1][C] [UNIQUE constraint failed: revs.doc_id, revs.revid]
at com.almworks.sqlite4java.SQLiteConnection.throwResult(SQLiteConnection.java:1436)
at com.almworks.sqlite4java.SQLiteConnection$BaseController.throwResult(SQLiteConnection.java:1689)
at com.almworks.sqlite4java.SQLiteStatement.stepResult(SQLiteStatement.java:1402)
at com.almworks.sqlite4java.SQLiteStatement.step(SQLiteStatement.java:301)
at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.executeSQLStatement(SQLiteWrapper.java:331)
at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insertWithOnConflict(SQLiteWrapper.java:314)
at com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insert(SQLiteWrapper.java:325)
at com.cloudant.sync.datastore.callables.InsertRevisionCallable.call(InsertRevisionCallable.java:67)
at com.cloudant.sync.datastore.DatastoreImpl.insertDocumentHistoryIntoExistingTree(DatastoreImpl.java:1377)
at com.cloudant.sync.datastore.DatastoreImpl.doForceInsertExistingDocumentWithHistory(DatastoreImpl.java:1337)
at com.cloudant.sync.datastore.DatastoreImpl.access$800(DatastoreImpl.java:78)
at com.cloudant.sync.datastore.DatastoreImpl$14.call(DatastoreImpl.java:1170)
at com.cloudant.sync.sqlite.SQLQueueCallable.call(SQLQueueCallable.java:36)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.