Sqlcipher not opening the database with the correct password in SQLiteManager after exception occurs


#1

Hi,
I am facing a weird issue with SQLCipher , we are implementing sql cipher in our databases.Sometimes we are able to perform the operations on the database correctly.But after the following exception occurs we are neither able to perform any operation on the database nor we can open the database in the SQLiteManager from the browser.
The exception which we observe is :
16,2000,01.08.2016_01.56.42.303,Warning,Exception in SQLiteAccess.getRecords()
16,2000,01.08.2016_01.56.42.307,net.sqlcipher.database.SQLiteException: file is encrypted or is not a database
net.sqlcipher.database.SQLiteDatabase.native_setLocale(Native Method)
net.sqlcipher.database.SQLiteDatabase.setLocale(SQLiteDatabase.java:2092)
net.sqlcipher.database.SQLiteDatabase.(SQLiteDatabase.java:1958)
net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:875)
net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:934)
net.sqlcipher.database.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:219)
net.sqlcipher.database.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:184)

We are kind of stuck with this issue. Any help is appreciated


#2

Hello @Akashdeep_Singh

We believe this is the same issue addressed here: https://github.com/sqlcipher/sqlcipher/issues/159

Please let us know if this isn’t the case.