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]

GitHub | tomblench | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 280#241750708

    GitHub | 8 months ago | tomblench
    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]

    Root Cause Analysis

    1. 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()
    2. sqlite4java
      SQLiteStatement.step
      1. com.almworks.sqlite4java.SQLiteConnection.throwResult(SQLiteConnection.java:1436)
      2. com.almworks.sqlite4java.SQLiteConnection$BaseController.throwResult(SQLiteConnection.java:1689)
      3. com.almworks.sqlite4java.SQLiteStatement.stepResult(SQLiteStatement.java:1402)
      4. com.almworks.sqlite4java.SQLiteStatement.step(SQLiteStatement.java:301)
      4 frames
    3. com.cloudant.sync
      SQLQueueCallable.call
      1. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.executeSQLStatement(SQLiteWrapper.java:331)
      2. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insertWithOnConflict(SQLiteWrapper.java:314)
      3. com.cloudant.sync.sqlite.sqlite4java.SQLiteWrapper.insert(SQLiteWrapper.java:325)
      4. com.cloudant.sync.datastore.callables.InsertRevisionCallable.call(InsertRevisionCallable.java:67)
      5. com.cloudant.sync.datastore.DatastoreImpl.insertDocumentHistoryIntoExistingTree(DatastoreImpl.java:1377)
      6. com.cloudant.sync.datastore.DatastoreImpl.doForceInsertExistingDocumentWithHistory(DatastoreImpl.java:1337)
      7. com.cloudant.sync.datastore.DatastoreImpl.access$800(DatastoreImpl.java:78)
      8. com.cloudant.sync.datastore.DatastoreImpl$14.call(DatastoreImpl.java:1170)
      9. com.cloudant.sync.sqlite.SQLQueueCallable.call(SQLQueueCallable.java:36)
      9 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames