java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

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

,
Expert tip

If your row exceed the limit of 2mb of SQLite you're gonna receive this exception, consider using your database just for filepaths and then store your files in a filesystem.

,
Expert tip

This is caused by issue #73 in couchbase-lite-java-core, and it seems to have been fixed.

Solutions on the web

via GitHub by gdriskell
, 10 months ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by Anthony
, 1 year ago
Couldn't read row 1127, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via steeplesoft.com by Unknown author, 1 year ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via Stack Overflow by Unknown author, 2 years ago
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via GitHub by PankaJJakhar
, 2 years ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
via GitHub by marck0z
, 1 year ago
Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetLong(Native Method)
at android.database.CursorWindow.getLong(CursorWindow.java:524)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
at com.fsck.k9.mailstore.migrations.MigrationTo51.db51MigrateMessageFormat(MigrationTo51.java:79)
at com.fsck.k9.mailstore.migrations.Migrations.upgradeDatabase(Migrations.java:58)
at com.fsck.k9.mailstore.StoreSchemaDefinition.upgradeDatabase(StoreSchemaDefinition.java:60)
at com.fsck.k9.mailstore.StoreSchemaDefinition.doDbUpgrade(StoreSchemaDefinition.java:36)
at com.fsck.k9.mailstore.LockableDatabase.openOrCreateDataspace(LockableDatabase.java:381)
at com.fsck.k9.mailstore.LockableDatabase.open(LockableDatabase.java:354)
at com.fsck.k9.mailstore.LocalStore.(LocalStore.java:210)
at com.fsck.k9.mailstore.LocalStore.getInstance(LocalStore.java:235)
at com.fsck.k9.Account.getLocalStore(Account.java:1278)
at com.fsck.k9.controller.MessagingController.setupPushing(MessagingController.java:4322)
at com.fsck.k9.service.MailService.setupPushers(MailService.java:349)
at com.fsck.k9.service.MailService.reschedulePushers(MailService.java:338)
at com.fsck.k9.service.MailService.access$100(MailService.java:24)
at com.fsck.k9.service.MailService$1.run(MailService.java:194)
at com.fsck.k9.service.CoreService$1.run(CoreService.java:315)
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

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
11 times, 11 months ago
29 more bugmates

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