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 nAkhmedov
, 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 GitHub by jcamp1
, 2 years ago
Couldn't read row 486, col 0 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 smholsen
, 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 steeplesoft.com by Unknown author, 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 philippb
, 2 years 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:511)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
at de.greenrobot.dao.AbstractDao.loadCurrent(AbstractDao.java:412)
at de.greenrobot.dao.InternalQueryDaoAccess.loadCurrent(InternalQueryDaoAccess.java:17)
at de.greenrobot.dao.query.LazyList.loadEntity(LazyList.java:259)
at com.shazzle.homebridge.adapter.EmailListAdapter.getItemId(EmailListAdapter.java:89)
at android.widget.AdapterView.rememberSyncState(AdapterView.java:1226)
at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:820)
at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6140)
at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
at com.shazzle.homebridge.fragment.MailboxFragment.onLoadFinished(MailboxFragment.java:302)
at com.shazzle.homebridge.fragment.MailboxFragment.onLoadFinished(MailboxFragment.java:64)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:476)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:444)
at com.shazzle.homebridge.loader.EmailLoader.deliverResult(EmailLoader.java:79)
at com.shazzle.homebridge.loader.EmailLoader.deliverResult(EmailLoader.java:14)
at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249)
at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77)
at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466)
at android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

Users with the same issue

11 times, 1 year ago
61 times, 1 year ago
9 times, 1 year ago
Once, 1 year ago
Once, 1 year ago

Write tip

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