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

Solutions on the web

via GitHub by rivaldi8
, 1 year ago
FOREIGN KEY constraint failed (code 787) 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging messages. 10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling
org.gnucash.android.importer.ImportAsyncTask: FOREIGN KEY constraint failed (code 787)
10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging messages.
10:11:47.569 E/CrashlyticsCore: Crashlytics must be initialized by calling Fabric.with(Context) prior to logging exceptions.
10:11:47.570 W/System.err: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787)
10:11:47.606 W/System.err:     at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method)
10:11:47.606 W/System.err:     at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:559)
10:11:47.606 W/System.err:     at android.database.sqlite.SQLiteSession.execute(SQLiteSession.java:619)
10:11:47.606 W/System.err:     at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:44)
10:11:47.606 W/System.err:     at org.gnucash.android.db.adapter.DatabaseAdapter.doAddModels(DatabaseAdapter.java:260)	at org.gnucash.android.db.adapter.DatabaseAdapter.bulkAddRecords(DatabaseAdapter.java:298)	at org.gnucash.android.db.adapter.TransactionsDbAdapter.bulkAddRecords(TransactionsDbAdapter.java:160)	at org.gnucash.android.importer.GncXmlHandler.saveToDatabase(GncXmlHandler.java:1000)	at org.gnucash.android.importer.GncXmlHandler.endDocument(GncXmlHandler.java:967)	at org.apache.harmony.xml.ExpatParser.endDocument(ExpatParser.java:532)	at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:476)	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)	at org.gnucash.android.importer.GncXmlImporter.parse(GncXmlImporter.java:69)	at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:85)	at org.gnucash.android.importer.ImportAsyncTask.doInBackground(ImportAsyncTask.java:49)	at android.os.AsyncTask$2.call(AsyncTask.java:288)	at java.util.concurrent.FutureTask.run(FutureTask.java:237)	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)	at java.lang.Thread.run(Thread.java:818)