-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting exception code 8 #797
Comments
Closing for multiple reasons:
|
Sorry Chris, Platform : Android Our app have regress interaction with database for Insert/Update & Select. After some 15-20 transaction, the "Update" & "Insert" query tends to fail in executing. The SQLException 8 is coming. These queries are running in background thread. Simultaneously we are performing some action on the JS side due to which we are getting the following exception SQL Query Causing issue after some successful executions is, "UPDATE log_table SET sync_status=0 WHERE tablename = 'trip_table'" Exception Stacktrace 7-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: java.sql.SQLException: sqlite3_step failure: attempt to write a readonly database Looking forward for your support. |
Please explain how you are accessing the database. Accessing the same database outside the plugin is not supported and may lead to "multiple sqlite problem" as discussed in documentation and multiple issues. If you do need to access the same database outside of this plugin the workaround is to open the database with the |
Hello Chris, BElow is my DB adapter file url. Can you please check this: https://drive.google.com/file/d/1il6HLzfyCphVzv0WCv1SnSrKl0BjGk_l/view?usp=sharing |
So it looks to me like you are accessing the same database from both the plugin and the custom DB adapter. In this case you have to open the database with the If you do not use the P.S. Linking to https://stackoverflow.com/questions/1518729/change-sqlite-database-mode-to-read-write for reference |
Hello Chris, I have used this but it is not resolving my issue. Can you please help me sort this issue? Multiple SQLite problem on Android The workaround is to use the androidDatabaseImplementation: 2 setting as described in the Android sqlite implementation section below: var db = window.sqlitePlugin.openDatabase({ |
At this point I think the best approach would be to start with a really simple app, with a really simple database adapter, using the I will be available later today or tonight to work with you if necessary, will contact you privately about the pricing. |
Getting Exception code 8 after several attempts of insert/update. Below is the query & result error code.
UPDATE log_table SET sync_status=0 WHERE tablename = 'trip_table'
Exception code: 8
Exception
7-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: java.sql.SQLException: sqlite3_step failure: attempt to write a readonly database
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at io.liteglue.SQLiteGlueConnection$SQLGStatement.step(SQLiteGlueConnection.java:135)
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at io.sqlc.SQLiteConnectorDatabase.executeSQLiteStatement(SQLiteConnectorDatabase.java:214)
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at io.sqlc.SQLiteConnectorDatabase.executeSqlBatch(SQLiteConnectorDatabase.java:114)
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:340)
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-05 06:25:24.621 14553-14649/com.sipl.dtdc W/System.err: at java.util.concurrent.ThreadPoolExecuto
The text was updated successfully, but these errors were encountered: