Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    activity.OnCreate is executed every time the app launches or the screen is rotated, so, putting your DB initialization inside it will cause the DB to be called too many times causing the exception. Try to use the MyDatabase.onCreate method for this.

Solutions on the web

via GitHub by 1fish2
, 1 year ago
NOT NULL constraint failed: awards.key (code 1299)
via Stack Overflow by Alexia White
, 2 years ago
UNIQUE constraint failed: context.context_id (code 2067)
via Stack Overflow by Unknown author, 1 year ago
UNIQUE constraint failed: (code 1555)
via Stack Overflow by seon
, 1 year ago
UNIQUE constraint failed: bookmark.Id (code 1555)
via Stack Overflow by Tony
, 1 year ago
PRIMARY KEY must be unique (code 19)
via GitHub by xtj-9182
, 1 year ago
UNIQUE constraint failed: capitulos.path (code 2067)
android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: awards.key (code 1299)	at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)	at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(	at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(	at android.database.sqlite.SQLiteStatement.executeInsert(	at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(	at android.database.sqlite.SQLiteDatabase.insert(	at com.thebluealliance.androidclient.database.ModelTable.add(	at com.thebluealliance.androidclient.database.ModelTable.add(	at com.thebluealliance.androidclient.database.writers.AwardListWriter.write(	at com.thebluealliance.androidclient.gcm.notifications.AwardsPostedNotification.updateDataLocally(	at com.thebluealliance.androidclient.gcm.GCMMessageHandler.handleMessage(	at com.thebluealliance.androidclient.gcm.GCMMessageHandler.onHandleIntent(	at$ServiceHandler.handleMessage(	at android.os.Handler.dispatchMessage(	at android.os.Looper.loop(	at