android.database.sqlite.SQLiteException: no such column: image (code 1): , while compiling: SELECT id, nameDefault, name, image FROM contacts WHERE id=?

Stack Overflow | Ghost | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 50#146770200

    GitHub | 1 year ago | krazykira
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0

    Android: Sugar ORM No Such Table Exception

    Stack Overflow | 1 year ago | Sheraz Ahmad Khilji
    java.lang.RuntimeException: An error occured while executing doInBackground() 10-09 11:30:26.516
  3. 0

    sqlite: Android: Sugar ORM No Such Table Exception

    blogspot.com | 1 year ago
    java.lang.RuntimeException: An error occured while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    sqlite: Android: Sugar ORM No Such Table Exception

    co.uk | 1 year ago
    java.lang.RuntimeException: An error occured while executing doInBackground()
  6. 0

    Error in Sqlite query in android

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: unrecognized token: "'%xyz" (code 1): , while compiling: **SELECT column FROM TABLE_NAME WHERE Name LIKE '%xyz��������������������������������������������������������������������%'**
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.database.sqlite.SQLiteException

    no such column: image (code 1): , while compiling: SELECT id, nameDefault, name, image FROM contacts WHERE id=?

    at android.database.sqlite.SQLiteConnection.nativePrepareStatement()
  2. Android Platform
    SQLiteDatabase.query
    1. android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    2. android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
    3. android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
    4. android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    5. android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
    6. android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
    7. android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
    8. android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314)
    9. android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1161)
    10. android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1032)
    11. android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1238)
    11 frames
  3. com.example.nirvan
    MainActivity$1.onPageSelected
    1. com.example.nirvan.diary30.DatabaseHandler.getContact(DatabaseHandler.java:136)
    2. com.example.nirvan.diary30.MainActivity$1.onPageSelected(MainActivity.java:87)
    2 frames
  4. Android Support v4
    ViewPager.setCurrentItem
    1. android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1933)
    2. android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:685)
    3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:669)
    4. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:630)
    5. android.support.v4.view.ViewPager.setCurrentItem(ViewPager.java:611)
    5 frames
  5. android.support.design
    TabLayout$TabView.performClick
    1. android.support.design.widget.TabLayout$ViewPagerOnTabSelectedListener.onTabSelected(TabLayout.java:2156)
    2. android.support.design.widget.TabLayout.dispatchTabSelected(TabLayout.java:1138)
    3. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1132)
    4. android.support.design.widget.TabLayout.selectTab(TabLayout.java:1105)
    5. android.support.design.widget.TabLayout$Tab.select(TabLayout.java:1396)
    6. android.support.design.widget.TabLayout$TabView.performClick(TabLayout.java:1501)
    6 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.View$PerformClick.run(View.java:18465)
    2. android.os.Handler.handleCallback(Handler.java:733)
    3. android.os.Handler.dispatchMessage(Handler.java:95)
    4. android.os.Looper.loop(Looper.java:136)
    5. android.app.ActivityThread.main(ActivityThread.java:5086)
    5 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame