Unknown SQLiteException Error

Does anyone know what that means? I am trying to start a transaction in onActivityResult () to insert a row based on the result.

03-05 15: 39: 51.937: ERROR / Database (2387): Failure 21 (from memory) at 0x0 during preparation of "START EXCLUSIVE".

03-05 15: 39: 51.967: DEBUG / AndroidRuntime (2387): shut down VM 03-05 15: 39: 51.967: WARN / dalvikvm (2387): threadid = 3: thread exiting with an uncaught exception (Group = 0x40013140)

03-05 15: 39: 51.967: ERROR / AndroidRuntime (2387): impurity handler: thread exiting due to an uncaught exception

03-05 15: 39: 52.137: ERROR / AndroidRuntime (2387): java.lang.RuntimeException: failure result output ResultInfo {who = null, request = 1, result = -1, data = Intent {(has additional functions)} } to action {Com.ozdroid / com.ozdroid.load.LoadView}: android.database.sqlite.SQLiteException: unknown error: BEGIN EXCLUSIVE;

...

03-05 15: 39: 52.137: ERROR / AndroidRuntime (2387): caused by: android.database.sqlite.SQLiteException: unknown error: BEGIN EXCLUSIVE;

...

03-05 15: 39: 52.137: ERROR / AndroidRuntime (2387): with android.database.sqlite.SQLiteDatabase.beginTransaction (SQLiteDatabase.java:434)

+3
source share
1 answer

This happened to me in two situations:

  • when SQL statements contain syntax errors
  • beginTransaction

, . , open() ( close()) beginTransaction.

, , logcat 100% .

+9

Source: https://habr.com/ru/post/1735544/


All Articles