java.lang.IllegalStateException

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

Samebug tips4

The cursor might not be initalized.


rafaelrafael

You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web215

Stack trace

  • java.lang.IllegalStateException: Couldn't read row 4862, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method) at android.database.CursorWindow.getString(CursorWindow.java:434) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51) at com.j256.ormlite.android.AndroidDatabaseResults.getString(AndroidDatabaseResults.java:134) at com.j256.ormlite.field.types.StringType.resultToSqlArg(StringType.java:39) at com.j256.ormlite.field.BaseFieldConverter.resultToJava(BaseFieldConverter.java:24) at com.j256.ormlite.field.FieldType.resultToJava(FieldType.java:819) at com.j256.ormlite.stmt.mapped.BaseMappedQuery.mapRow(BaseMappedQuery.java:60) at com.j256.ormlite.stmt.SelectIterator.getCurrent(SelectIterator.java:270) at com.j256.ormlite.stmt.SelectIterator.nextThrow(SelectIterator.java:161) at com.j256.ormlite.stmt.SelectIterator.next(SelectIterator.java:173) at com.sysinfo.scanner.database.EntityManager.deleteEntityRecursively(EntityManager.java:215) at com.sysinfo.scanner.activity.CatalogListActivity$2.onItemClick(CatalogListActivity.java:114) at android.widget.AdapterView.performItemClick(AdapterView.java:297) at android.widget.AbsListView.performItemClick(AbsListView.java:1100) at android.widget.AbsListView$PerformClick.run(AbsListView.java:2788) at android.widget.AbsListView$1.run(AbsListView.java:3463) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
65 more bugmates