java.lang.RuntimeException: Unable to start activity ComponentInfo{user_profile.createtable/user_profile.createtable.MainActivity}: android.database.sqlite.SQLiteException: near "tableStudent_table": syntax error (code 1): , while compiling: create tableStudent_table (ID INTEGER PRIMARY KEY ,NAME TEXT,SURNAME TEXT,MARKS INTEGER)

Stack Overflow | Sachin Tomar | 2 months ago
  1. 0

    Runtime exception while table creation in SQLite(Create table has stoped)

    Stack Overflow | 2 months ago | Sachin Tomar
    java.lang.RuntimeException: Unable to start activity ComponentInfo{user_profile.createtable/user_profile.createtable.MainActivity}: android.database.sqlite.SQLiteException: near "tableStudent_table": syntax error (code 1): , while compiling: create tableStudent_table (ID INTEGER PRIMARY KEY ,NAME TEXT,SURNAME TEXT,MARKS INTEGER)
  2. 0

    SQL Exception on Update

    GitHub | 2 years ago | phil-lopreiato
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thebluealliance.androidclient/com.thebluealliance.androidclient.activities.LaunchActivity}: android.database.sqlite.SQLiteException: duplicate column name: name (code 1): , while compiling: ALTER TABLE districts ADD COLUMN name TEXT DEFAULT ''
  3. 0

    Android DB - Syntax error

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: near "from": syntax error (code 1): , while compiling: create table timetables (id integer primary key autoincrement,name text,from text,to text,days text,sound text,indicator text);
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RuntimeException: Unable to resume activity

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: near "TABLEstudents": syntax error (code 1): , while compiling: CREATE TABLEstudents(_id INTEGER PRIMARY KEY AUTOINCREMENT, _name VARCHAR(30))
  6. 0

    Android activity forcefully stops

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.photoalbum/com.example.photoalbum.SignupActivity}: android.database.sqlite.SQLiteException: near "(": syntax error (code 1): , while compiling: CREATE TABLE ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email TEXT, password TEXT, firstname TEXT, lastname TEXT, dob 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

    near "tableStudent_table": syntax error (code 1): , while compiling: create tableStudent_table (ID INTEGER PRIMARY KEY ,NAME TEXT,SURNAME TEXT,MARKS INTEGER)

    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: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.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. user_profile.createtable
    DatabaseHelper.onCreate
    1. user_profile.createtable.DatabaseHelper.onCreate(DatabaseHelper.java:26)
    1 frame
  4. Android Platform
    SQLiteOpenHelper.getWritableDatabase
    1. android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:251)
    2. android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)
    2 frames
  5. user_profile.createtable
    MainActivity.onCreate
    1. user_profile.createtable.DatabaseHelper.<init>(DatabaseHelper.java:21)
    2. user_profile.createtable.MainActivity.onCreate(MainActivity.java:13)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:6010)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
    5. android.app.ActivityThread.access$800(ActivityThread.java:155)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5343)
    9 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    2 frames