net.sqlcipher.database.SQLiteException: file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by perqin
, 1 year ago
file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;
via GitHub by nkmadala
, 7 months ago
file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;
via Stack Overflow by saikumar
, 7 months ago
file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;
via GitHub by bigmickyg
, 1 year ago
variable number must be between ?1 and ?999: , while compiling: <query> We are running SQLCipher 2.1.1 Here is the relevant part of the stacktrace.
via GitHub by jordanterry
, 10 months ago
file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;
net.sqlcipher.database.SQLiteException: file is encrypted or is not a database: , while compiling: select count(*) from sqlite_master;
at net.sqlcipher.database.SQLiteCompiledSql.native_compile(Native Method)
at net.sqlcipher.database.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:91)
at net.sqlcipher.database.SQLiteCompiledSql.(SQLiteCompiledSql.java:64)
at net.sqlcipher.database.SQLiteProgram.(SQLiteProgram.java:83)
at net.sqlcipher.database.SQLiteQuery.(SQLiteQuery.java:49)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:42)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1787)
at net.sqlcipher.database.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1752)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase(SQLiteDatabase.java:2427)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2356)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1116)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1056)
at net.zetetic.tests.MUTF8ToUTF8WithNullMigrationTest.execute(MUTF8ToUTF8WithNullMigrationTest.java:36)
at net.zetetic.tests.SQLCipherTest.run(SQLCipherTest.java:36)
at net.zetetic.tests.TestSuiteRunner.runSuite(TestSuiteRunner.java:40)
at net.zetetic.tests.TestSuiteRunner.doInBackground(TestSuiteRunner.java:20)
at net.zetetic.tests.TestSuiteRunner.doInBackground(TestSuiteRunner.java:12)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.