com.couchbase.lite.internal.database.sqlite.exception.SQLiteException: no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs

GitHub | AnthonyTTaylor | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SQLiteException: no such table: docs (code 1): on Android Nougat

    GitHub | 7 months ago | AnthonyTTaylor
    com.couchbase.lite.internal.database.sqlite.exception.SQLiteException: no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs

    Root Cause Analysis

    1. com.couchbase.lite.internal.database.sqlite.exception.SQLiteException

      no such table: docs (code 1): , while compiling: SELECT doc_id, docid FROM docs

      at com.couchbase.lite.internal.database.sqlite.SQLiteConnection.nativePrepareStatement()
    2. com.couchbase.lite
      Manager.<init>
      1. com.couchbase.lite.internal.database.sqlite.SQLiteConnection.nativePrepareStatement(SQLiteConnection.java)
      2. com.couchbase.lite.internal.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:718)
      3. com.couchbase.lite.internal.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:431)
      4. com.couchbase.lite.internal.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:595)
      5. com.couchbase.lite.internal.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:64)
      6. com.couchbase.lite.internal.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
      7. com.couchbase.lite.internal.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:48)
      8. com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1300)
      9. com.couchbase.lite.internal.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1239)
      10. com.couchbase.lite.storage.SQLiteStorageEngineBase.rawQuery(SQLiteStorageEngineBase.java:183)
      11. com.couchbase.lite.DatabaseUpgrade.importData(DatabaseUpgrade.java:109)
      12. com.couchbase.lite.Manager.upgradeDatabase(Manager.java:857)
      13. com.couchbase.lite.Manager.upgradeOldDatabaseFiles(Manager.java:798)
      14. com.couchbase.lite.Manager.<init>(Manager.java:130)
      14 frames
    3. com.ontimeapp.ontime
      MainMenuFragment.onStart
      1. com.ontimeapp.ontime.services.imp.CouchDbCacheKt.makeOrBuild(CouchDbCache.kt:59)
      2. com.ontimeapp.ontime.services.imp.CouchDbCache.<init>(CouchDbCache.kt:74)
      3. com.ontimeapp.ontime.services.CityCache.<init>(CityCache.kt:22)
      4. com.ontimeapp.ontime.services.CityCache$Companion.getInstance(CityCache.kt:48)
      5. com.ontimeapp.ontime.MainMenuFragment.onStart(MainMenuFragment.kt:70)
      5 frames
    4. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.Fragment.performStart(Fragment.java:2106)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1146)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      4. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1272)
      5. android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2154)
      6. android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:212)
      7. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:610)
      7 frames
    5. Android v7
      AppCompatActivity.onStart
      1. android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
      1 frame
    6. com.ontimeapp.ontime
      MainActivity.onStart
      1. com.ontimeapp.ontime.MainActivity.onStart(MainActivity.kt:116)
      1 frame
    7. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1248)
      2. android.app.Activity.performStart(Activity.java:6681)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2609)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
      4 frames