tags:

views:

71

answers:

1
07-26 16:15:05.341: ERROR/CursorWindow(330): Bad request for field slot 0,-1. numRows = 1, numColumns = 2
07-26 16:15:05.380: ERROR/AndroidRuntime(330): FATAL EXCEPTION: main
07-26 16:15:05.380: ERROR/AndroidRuntime(330): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.CRUDonDB1}: java.lang.IllegalStateException: get field slot from row 0 col -1 failed
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.os.Looper.loop(Looper.java:123)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at java.lang.reflect.Method.invokeNative(Native Method)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at java.lang.reflect.Method.invoke(Method.java:521)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at dalvik.system.NativeStart.main(Native Method)
07-26 16:15:05.380: ERROR/AndroidRuntime(330): Caused by: java.lang.IllegalStateException: get field slot from row 0 col -1 failed
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.database.CursorWindow.getString_native(Native Method)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.database.CursorWindow.getString(CursorWindow.java:329)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:49)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at com.dataApplication.CRUDonDB1.onCreate(CRUDonDB1.java:39)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 16:15:05.380: ERROR/AndroidRuntime(330):     ... 11 more
07-26 16:16:20.481: ERROR/AndroidRuntime(359): FATAL EXCEPTION: main
07-26 16:16:20.481: ERROR/AndroidRuntime(359): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.Edit}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.os.Looper.loop(Looper.java:123)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at java.lang.reflect.Method.invokeNative(Native Method)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at java.lang.reflect.Method.invoke(Method.java:521)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at dalvik.system.NativeStart.main(Native Method)
07-26 16:16:20.481: ERROR/AndroidRuntime(359): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ListActivity.onContentChanged(ListActivity.java:245)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.Activity.setContentView(Activity.java:1647)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at com.dataApplication.Edit.onCreate(Edit.java:32)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 16:16:20.481: ERROR/AndroidRuntime(359):     ... 11 more
+1  A: 

You have two errors for the second see your previous question

For your database error check line 39 of CRUDonDB1.java file. Probably you are trying to retrive an item from the cursor with getString and fails because the cursor returns no results.

Pentium10