java.lang.IllegalStateException: get field slot from row 0 col -1 failed 异常错误
来源:互联网 发布:检查ip端口是否打开 编辑:程序博客网 时间:2024/06/05 00:48
用游标迭代数据时,出现此异常:
java.lang.IllegalStateException: get field slot from row 0 col -1 failed
原因有可能如下:
1,检查查询的字段名是否写错
2, 检查游标是否查询出你所需要的字段
3.cursor的使用
public Cursor getChildCursor(int groupId){
try {
SQLiteDatabase db = open();
return db.query("table"+groupId, null, null, null, null, null, null);
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
int groupId = groupCursor.getInt(groupCursor.getColumnIndex("_id"));
0 0
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed 异常错误
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed 异常错误
- android 数据库开发中java.lang.IllegalStateException: get field slot from row 0 col -1 failed 异常错误
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed
- illegalstateexception:get field slot from row 0 col -1 failed
- java.lang.IllegalStateException:get field slot from row 1 col -1 failed
- IllegalStateException: get field slot from row 0 col -1 failed
- get field slot from row 0 col -1 failed
- android sqlite查询数据时报错: get field slot from row 0 col -1 failed
- android sqlite查询数据时报错: get field slot from row 0 col -1 failed
- android resolver.query 查询数据时报错: get field slot from row 0 col X failed
- Android SQLite 数据库 java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow异常
- java.lang.IllegalStateException: Couldn't read row 0, col 1 from CursorWindow.异常
- java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow异常
- java.lang.IllegalStateException: Couldn't read row 0, col 6 from CursorWindow异常
- bzoj 1709: [Usaco2007 Oct]Super Paintball超级弹珠
- codeforces 461B Appleman and Tree
- Jsp/Servlet基础-动态INCLUDE与静态INCLUDE的区别
- OpenCV最小外接矩形
- 概率图模型(PGM)学习笔记(五)——模板模型
- java.lang.IllegalStateException: get field slot from row 0 col -1 failed 异常错误
- yuv422打包模式转平面模式
- 分配问题 二分最佳匹配问题
- usb cdc
- 不重新启动挂载一个阿里或者腾讯云磁盘
- 菜鸟系列之C/C++经典试题(七)
- matlab中的sin(函数)
- 九度oj-1011-最大连续子序列
- HDU 4707 水DFS