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 dabx
, 1 year ago
Exception executing statement: insert into Event (code, colour, dayName, endTime, name, roomCode, roomDescription, staff, startTime, studentOwner, type, weeks) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
via GitHub by danysz
, 1 year ago
Exception executing statement: insert into Connection (SSID, iPAddressLocal, iPAddressRemote, name, password, portLocal, portRemote, userName, vBoxLastUpdate) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
via GitHub by AlexeyKorshun
, 1 year ago
Exception executing statement: insert into Team (id, coach, name) values (?, ?, ?)
via GitHub by sausager
, 2 months ago
Exception executing statement: insert into CALLER ("CITY", "COUNT", "IS_OFFLINE", "LAST_UPDATE", "NAME", "NUMBER", "OPERATORS", "PROVINCE", "SOURCE", "TYPE") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
via GitHub by robin-jin
, 1 month ago
Exception executing statement: insert into MARKED_RECORD ("COUNT", "IS_REPORTED", "NUMBER", "SOURCE", "TIME", "TYPE", "TYPE_NAME", "UID") values (?, ?, ?, ?, ?, ?, ?, ?)
android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787)	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	at io.requery.sql.EntityUpdateOperation$1.evaluate(	at io.requery.sql.EntityUpdateOperation$1.evaluate(	at io.requery.query.BaseScalar.value(	at io.requery.sql.EntityWriter.insert(	at io.requery.sql.EntityWriter.cascadeWrite(	at io.requery.sql.EntityWriter.updateInverseAssociation(	at io.requery.sql.EntityWriter.updateAssociations(	at io.requery.sql.EntityWriter.insert(	at io.requery.sql.EntityWriter.insert(	at io.requery.sql.EntityDataStore.insert(	at io.requery.sql.EntityDataStore.insert(	at io.requery.rx.SingleEntityStoreFromBlocking$1.get(	at	at	at rx.Single$	at rx.Single$	at rx.Single.subscribe(	at rx.Single.subscribe(	at rx.Single$19$	at	at rx.internal.schedulers.ExecutorScheduler$	at java.util.concurrent.ThreadPoolExecutor.runWorker(	at java.util.concurrent.ThreadPoolExecutor$	at