yanzhenjie/NoHttp

android.database.sqlite.SQLiteReadOnlyDatabaseException

wikison opened this issue · 0 comments

#102 android.database.sqlite.SQLiteReadOnlyDatabaseException
attempt to write a readonly database (code 776)

com.yanzhenjie.nohttp.db.BaseDao.getReader(BaseDao.java:51)

1 android.database.sqlite.SQLiteConnection.nativeExecuteForLong(Native Method)

2 android.database.sqlite.SQLiteConnection.executeForLong(SQLiteConnection.java:606)
3 android.database.sqlite.SQLiteSession.executeForLong(SQLiteSession.java:652)
4 android.database.sqlite.SQLiteStatement.simpleQueryForLong(SQLiteStatement.java:107)
5 android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:845)
6 android.database.DatabaseUtils.longForQuery(DatabaseUtils.java:833)
7 android.database.sqlite.SQLiteDatabase.getVersion(SQLiteDatabase.java:866)
8 android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:241)
9 android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)
10 com.yanzhenjie.nohttp.db.BaseDao.getReader(BaseDao.java:51)
11 com.yanzhenjie.nohttp.cache.CacheEntityDao.getList(CacheEntityDao.java:76)
12 com.yanzhenjie.nohttp.db.BaseDao.getList(BaseDao.java:210)
13 com.yanzhenjie.nohttp.cache.DBCacheStore.get(DBCacheStore.java:63)
14 com.yanzhenjie.nohttp.cache.DBCacheStore.get(DBCacheStore.java:34)
15 com.yanzhenjie.nohttp.rest.RestProtocol.request(RestProtocol.java:57)
16 com.yanzhenjie.nohttp.rest.SyncRequestExecutor.execute(SyncRequestExecutor.java:41)
17 com.yanzhenjie.nohttp.rest.RequestDispatcher.run(RequestDispatcher.java:96)

出现了好多次, 怎么解决啊