checkbox.setOnCheckedChangeListener:throw java.lang.reflect.InvocationTargetException
<p>Following is the adapter I am using. </p>

<p>Its throwing an exception when I set <code>setOnCheckedChangeListener</code>.<br>
I have tried to use <code>setOnCheckedChangeListener</code> in my activity directly (without a separate adapter) but still it failed.</p>

<pre><code>public class InteractiveArrayAdapter extends ArrayAdapter&lt;String&gt;{

private final List&lt;String&gt; list;
private final Activity context;
private final int layOut;

public InteractiveArrayAdapter(Activity context,int rowLayout, List&lt;String&gt; list) {
    super(context, rowLayout , list);
    this.context = context;
    this.list = list;
    this.layOut = rowLayout;
}

static class ViewHolder {
    protected TextView text;
    protected CheckBox checkbox;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    View view = null;
    if (convertView == null) {
        LayoutInflater inflator = context.getLayoutInflater();
        view = inflator.inflate(layOut, null);
        final ViewHolder viewHolder = new ViewHolder();
        viewHolder.text = (TextView) view.findViewById(R.id.callTitle);
        viewHolder.checkbox = (CheckBox) view.findViewById(R.id.checkbox);
        viewHolder.checkbox
                .setOnCheckedChangeListener(checkListener);
        view.setTag(viewHolder);
        viewHolder.checkbox.setTag(list.get(position));
    } else {
        view = convertView;
        ((ViewHolder) view.getTag()).checkbox.setTag(list.get(position));
    }
    ViewHolder holder = (ViewHolder) view.getTag();
    holder.text.setText(list.get(position));

    return view;
}

private OnCheckedChangeListener checkListener = new OnCheckedChangeListener() {
       @Override
       public void onCheckedChanged(CompoundButton checkboxView, boolean isChecked) {

       }
    };
</code></pre>

<p>}</p>
