java.lang.RuntimeException: An error occurred while executing doInBackground()

Stack Overflow | Muted | 3 months ago
  1. 0

    Android onUpgrade SQLiteException: no such table when dropping table

    Stack Overflow | 3 months ago | Muted
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  2. 0

    App crashes when trying to create a SQLite table

    Stack Overflow | 1 year ago | yitzih
    android.database.sqlite.SQLiteException: near "CREATE_TABLE": syntax error (code 1): , while compiling: CREATE_TABLE sessions(id INT PRIMARY KEY AUTOINCREMENT, session_type TEXT, stake_level TEXT, limit_type TEXT, game_type TEXT, location TEXT, start_time TEXT, end_time TEXT, buy_in INT, cash_out INT, num_of_players INT, position_placed INT, places_paid INT, is_completed INT);
  3. 0

    Trouble creating SQLite database

    Stack Overflow | 11 months ago | zoid230
    android.database.sqlite.SQLiteException: near ")": syntax error (code 1): , while compiling: CREATE TABLE waiterinfo(key INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, );
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error when upgrading from DB version 5 to 9

    GitHub | 10 months ago | marco-scavuzzo
    android.database.sqlite.SQLiteException: duplicate column name: data (code 1): , while compiling: ALTER TABLE log ADD COLUMN data TEXT
  6. 0

    android getWritableDatabase() crashes

    Stack Overflow | 10 months ago | Yorokobii
    android.database.sqlite.SQLiteException: unknown database Alertes (code 1): , while compiling: CREATE TABLE Alertes.db(_id INTEGER PRIMARY KEY AUTOINCREMENT, alertename TEXT );
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 table: main.my_data (code 1): , while compiling: DROP TABLE IF EXISTS my_user

    at android.database.sqlite.SQLiteConnection.nativePrepareStatement()
  2. Android Platform
    SQLiteDatabase.execSQL
    1. android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    2. android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887)
    3. android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498)
    4. android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    5. android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
    6. android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
    7. android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1674)
    8. android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1605)
    8 frames
  3. com.application.myapp
    DatabaseHelper.onUpgrade
    1. com.application.myapp.data.DatabaseHelper.onUpgrade(DatabaseHelper.java:92)
    1 frame
  4. Android Platform
    SQLiteOpenHelper.getWritableDatabase
    1. android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:256)
    2. android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
    2 frames
  5. com.application.myapp
    MyDataContentProvider.query
    1. com.application.myapp.data.MyDataContentProvider.query(MyDataContentProvider.java:139)
    1 frame
  6. Android Platform
    AsyncTask$2.call
    1. android.content.ContentProvider.query(ContentProvider.java:1017)
    2. android.content.ContentProvider$Transport.query(ContentProvider.java:238)
    3. android.content.ContentResolver.query(ContentResolver.java:491)
    4. android.content.CursorLoader.loadInBackground(CursorLoader.java:64)
    5. android.content.CursorLoader.loadInBackground(CursorLoader.java:56)
    6. android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:312)
    7. android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:69)
    8. android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:66)
    9. android.os.AsyncTask$2.call(AsyncTask.java:295)
    9 frames
  7. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame