io.requery.PersistenceException: java.sql.SQLIntegrityConstraintViolationException: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: ThreadEntity.id (code 1555)

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 aegis123
, 1 year ago
java.sql.SQLIntegrityConstraintViolationException: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: ThreadEntity.id (code 1555)
io.requery.PersistenceException: java.sql.SQLIntegrityConstraintViolationException: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: ThreadEntity.id (code 1555)
at io.requery.android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
at io.requery.android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:762)
at io.requery.android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:764)
at io.requery.android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:68)
at io.requery.android.sqlitex.SqlitexPreparedStatement.executeUpdate(SqlitexPreparedStatement.java:156)
at io.requery.sql.BatchUpdateOperation.evaluate(BatchUpdateOperation.java:72)
at io.requery.sql.BatchUpdateOperation.evaluate(BatchUpdateOperation.java:35)
at io.requery.query.element.QueryElement.get(QueryElement.java:317)
at io.requery.sql.EntityWriter.batchInsert(EntityWriter.java:277)
at io.requery.sql.EntityDataStore.insert(EntityDataStore.java:223)
at io.requery.sql.EntityDataStore.insert(EntityDataStore.java:211)
at io.requery.rx.SingleEntityStoreFromBlocking$2.get(SingleEntityStoreFromBlocking.java:93)
at io.requery.rx.SingleEntityStoreFromBlocking$2.get(SingleEntityStoreFromBlocking.java:90)
at io.requery.rx.SingleOnSubscribeFromSupplier.call(SingleOnSubscribeFromSupplier.java:34)
at io.requery.rx.SingleOnSubscribeFromSupplier.call(SingleOnSubscribeFromSupplier.java:23)
at rx.Single$1.call(Single.java:90)
at rx.Single$1.call(Single.java:70)
at rx.Single.subscribe(Single.java:1839)
at rx.Single.subscribe(Single.java:1916)
at rx.Single$19$1.call(Single.java:1971)
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.