Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:43:38+00:00 2026-06-11T15:43:38+00:00

I am getting the following exception: java.lang.IllegalStateException: get field slot from row 0 col

  • 0

I am getting the following exception:

java.lang.IllegalStateException: get field slot from row 0 col -1 failed 

when I call setAdapter() on my ExpandableListView. Can someone please help me fix this problem? (I have already wasted 2 days 🙁 )

Cursor mCursor = tasksListCursor(); 
    Log.i("ChronicleTaskList", "rowcount: "+mCursor.getCount());
    startManagingCursor(mCursor);
    boolean flag = mCursor.moveToFirst();
    while (flag) {   // This loop executes fine.
        long id = mCursor.getLong(mCursor.getColumnIndexOrThrow(ChronicleDb.KEY_ID));
        String name = mCursor.getString(mCursor.getColumnIndexOrThrow(ChronicleDb.KEY_NAME));
        long from = mCursor.getLong(mCursor.getColumnIndexOrThrow(ChronicleDb.KEY_FROM));
        long to = mCursor.getLong(mCursor.getColumnIndexOrThrow(ChronicleDb.KEY_TO));
        Log.i("ChronicleTaskList", id + ", "+ name+ ", "+ from+ ", "+to);
        flag = mCursor.moveToNext();
    }
    String[] grpFromCols = { ChronicleDb.KEY_NAME};
    int[] grpToVals = { R.id.cGroupRowTextName };
    String[] fromCols = { TasksDbAdapter.KEY_TODODATE,
            TasksDbAdapter.KEY_NAME };
    int[] toVals = { R.id.textViewDate2, R.id.taskRowTextTask };

    ChronicleTreeListAdapterSimple adapter = new ChronicleTreeListAdapterSimple(this, mCursor, 
            R.layout.c_group_row, grpFromCols, grpToVals, 
            R.layout.task_row2, fromCols, toVals, true);
    expandableListView.setAdapter(adapter);    

The last line throws the exception.

And the Adapter looks like this:

public class ChronicleTreeListAdapterSimple extends SimpleCursorTreeAdapter {
protected static String TAG = "ChronicleTreeListAdapter";

public ChronicleTreeListAdapterSimple(
        ChronicleTaskList context, Cursor cursor,
        int groupLayout, String[] groupFrom, int[] groupTo, 
        int childLayout, String[] childFrom, int[] childTo,
        boolean showGroupName) {
    super(context, cursor, groupLayout, groupFrom, groupTo, childLayout, childFrom, childTo);
    taskList = context;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:43:39+00:00Added an answer on June 11, 2026 at 3:43 pm

    It has been solved now.

    The problem was with the table’s primary key column, which was
    "id"
    . So I have changed it to
    "_id"
    and it worked like a charm.

    This link gave me hint about the fix:
    https://groups.google.com/forum/?fromgroups=#!topic/android-developers/Nk-lc9shUgY

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New to android programming. Getting Following error. 04-07 14:49:05.452: ERROR/AndroidRuntime(1566): FATAL EXCEPTION: main java.lang.OutOfMemoryError
I am getting following exception: java.lang.UnsupportedClassVersionError: net/sourceforge/barbecue/BarcodeException : **Unsupported major.minor version 0.0** at java.lang.ClassLoader.defineClass1(Native
I'm trying to run the Terasort benchmarks and i'm getting the following exception: java.lang.RuntimeException:
I am getting following Exception on Android 2.2.1: java.lang.NoSuchMethodError: java.lang.String.isEmpty I am calling text.isEmpty
I am getting following error message: java.lang.IllegalStateException: Neither BindingResult nor plain target object for
I'm getting the following exception when I run my application in Release mode from
I'm getting the following exception when I try to run my HQL query: java.util.concurrent.ExecutionException:
I am getting the following exception in a Java app: Exception in thread "AWT-EventQueue-0"
Help! I'm getting this error when trying to connect using JAX-WS webservice call: java.lang.NoClassDefFoundError:
I'm new to using Hibernate with Java. I'm getting the following exception. The stuff

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.