java.lang.IllegalStateException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

tip

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

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

  • when select cursor sql get force close
    via Stack Overflow by user2375628
    ,
  • How to get cursor from a row number
    via Stack Overflow by CodeBoy
    ,
  • Android Cursor Init
    via Stack Overflow by Jilberta
    ,
  • Can't query Android SQLite database
    via Stack Overflow by jchoran
    ,
    • java.lang.IllegalStateException: Couldn't read row 22, col 1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetLong(CursorWindow.java) at android.database.CursorWindow.getLong(CursorWindow.java:511) at android.database.CursorWindow.getInt(CursorWindow.java:578) at android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:69) at org.wordpress.android.WordPressDB.getPostFromCursor(WordPressDB.java:1267) at org.wordpress.android.WordPressDB.getPostsListPosts(WordPressDB.java:1238) at org.wordpress.android.ui.posts.adapters.PostsListAdapter$LoadPostsTask.doInBackground(PostsListAdapter.java:654) at org.wordpress.android.ui.posts.adapters.PostsListAdapter$LoadPostsTask.doInBackground(PostsListAdapter.java:636) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) 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:831)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    29 more bugmates