net.sqlcipher.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2

Stack Overflow | Sarath Babu | 2 months ago
  1. 0

    Espresso CursorMatchers.withRowString() give CursorIndexOutOfBoundsException with Spinners

    Stack Overflow | 2 months ago | Sarath Babu
    net.sqlcipher.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2
  2. 0

    Cursor.moveToNext occasionally throwing unexplained exceptions

    Stack Overflow | 2 years ago | Swampie
    net.sqlcipher.CursorIndexOutOfBoundsException: Index 98 requested, with a size of 98 at net.sqlcipher.AbstractCursor.?(:556) at net.sqlcipher.AbstractWindowedCursor.?(:222) at net.sqlcipher.AbstractWindowedCursor.getLong(:101) at net.sqlcipher.AbstractCursor.moveToPosition(:199) at net.sqlcipher.AbstractCursor.moveToNext(:228)

    Root Cause Analysis

    1. net.sqlcipher.CursorIndexOutOfBoundsException

      Index 2 requested, with a size of 2

      at net.sqlcipher.AbstractCursor.checkPosition()
    2. net.sqlcipher
      AbstractWindowedCursor.getString
      1. net.sqlcipher.AbstractCursor.checkPosition(AbstractCursor.java:556)
      2. net.sqlcipher.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:222)
      3. net.sqlcipher.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:43)
      3 frames
    3. Android Platform
      CursorWrapper.getString
      1. android.database.CursorWrapper.getString(CursorWrapper.java:137)
      2. android.database.CursorWrapper.getString(CursorWrapper.java:137)
      2 frames
    4. android.support.test
      BoundedMatcher.matches
      1. android.support.test.espresso.matcher.CursorMatchers$7.apply(CursorMatchers.java:245)
      2. android.support.test.espresso.matcher.CursorMatchers$CursorMatcher.matchesSafely(CursorMatchers.java:113)
      3. android.support.test.espresso.matcher.CursorMatchers$CursorMatcher.matchesSafely(CursorMatchers.java:61)
      4. android.support.test.espresso.matcher.BoundedMatcher.matches(BoundedMatcher.java:73)
      4 frames
    5. Hamcrest
      DiagnosingMatcher.matches
      1. org.hamcrest.core.AllOf.matches(AllOf.java:27)
      2. org.hamcrest.DiagnosingMatcher.matches(DiagnosingMatcher.java:12)
      2 frames
    6. android.support.test
      ViewInteraction$1.run
      1. android.support.test.espresso.action.AdapterDataLoaderAction.perform(AdapterDataLoaderAction.java:83)
      2. android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:144)
      2 frames
    7. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2 frames
    8. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:746)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5459)
      4 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
      2 frames