java.lang.IllegalStateException: No cursor that can return names

GitHub | dirkam | 8 months ago
  1. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  2. 0
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    You should define the TestContext class in your classpath
  5. 0
    Update to Grails 3.0.x

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No cursor that can return names

      at net.xpece.android.support.preference.SortCursor.getColumnNames()
    2. net.xpece.android
      SortCursor.getColumnNames
      1. net.xpece.android.support.preference.SortCursor.getColumnNames(SortCursor.java:253)
      1 frame
    3. Android Platform
      AbstractCursor.getColumnIndexOrThrow
      1. android.database.AbstractCursor.getColumnIndex(AbstractCursor.java:283)
      2. android.database.AbstractCursor.getColumnIndexOrThrow(AbstractCursor.java:300)
      2 frames
    4. Android Support v4
      SimpleCursorAdapter.<init>
      1. android.support.v4.widget.CursorAdapter.init$f13d381(CursorAdapter.java:174)
      2. android.support.v4.widget.CursorAdapter.<init>(CursorAdapter.java)
      3. android.support.v4.widget.ResourceCursorAdapter.<init>(ResourceCursorAdapter.java)
      4. android.support.v4.widget.SimpleCursorAdapter.<init>(SimpleCursorAdapter.java)
      4 frames
    5. net.xpece.android
      XpRingtonePreferenceDialogFragment.onPrepareDialogBuilder
      1. net.xpece.android.support.preference.XpRingtonePreferenceDialogFragment.onPrepareDialogBuilder(XpRingtonePreferenceDialogFragment.java:195)
      1 frame
    6. android.support.v7
      PreferenceDialogFragmentCompat.onCreateDialog
      1. android.support.v7.preference.PreferenceDialogFragmentCompat.onCreateDialog(PreferenceDialogFragmentCompat.java:151)
      1 frame
    7. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.DialogFragment.getLayoutInflater(DialogFragment.java:308)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
      6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
      6 frames
    8. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:615)
      2. android.os.Handler.dispatchMessage(Handler.java:92)
      3. android.os.Looper.loop(Looper.java:137)
      4. android.app.ActivityThread.main(ActivityThread.java:4867)
      4 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
      2 frames
    11. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame