android - net.sqlcipher.database.SQLiteException: not an error: -


i getting error in android app db.

in sqlite database getting database query scripts in assets folder of code.

manager = context.getresources().getassets();             input = manager.open("createdb.xml");             xpp.setinput(input, null);             int type = xpp.geteventtype();             while(type != xmlpullparser.end_document) {                 if(type == xmlpullparser.start_document) {                      log.d(tag, "in start document");                 }                 else if(type == xmlpullparser.start_tag) {                     log.d(tag, "in start tag = "+xpp.getname());                 }                 else if(type == xmlpullparser.end_tag) {                     log.d(tag, "in end tag = "+xpp.getname());                  }                 else if(type == xmlpullparser.text) {                     log.d(tag, "have text = "+xpp.gettext());                      string strquery = xpp.gettext();                     db.execsql(strquery);                 }                 type = xpp.next();             }         }          catch (xmlpullparserexception e) {             // todo auto-generated catch block             e.printstacktrace();         } catch (ioexception e) {             // todo auto-generated catch block             e.printstacktrace();         } 

and working fine.

but running same code in sqlcipher database giving error , application crash's always.

even have add necessary libs .

failure 0 (not error) on 0x1a1ab0 when executing '  fatal exception: main  net.sqlcipher.database.sqliteexception: not error:      @ net.sqlcipher.database.sqlitedatabase.native_execsql(native method)     @ net.sqlcipher.database.sqlitedatabase.execsql(sqlitedatabase.java:1834)     @ com.acs.android.fwk.database.scriptexecutor.executescripts(scriptexecutor.java:86)     @ com.acs.android.fwk.database.databasehelper.oncreate(databasehelper.java:55)     @ net.sqlcipher.database.sqliteopenhelper.getwritabledatabase(sqliteopenhelper.java:121)     @ com.acs.android.fwk.database.databaseadapter.open(databaseadapter.java:79)     @ com.acs.android.fwk.database.databaseadapter.<init>(databaseadapter.java:49)     @ com.acs.android.fwk.database.databaseadapter.getinstance(databaseadapter.java:37)     @ com.acs.nomad.ui.controller.dbdemocontroller.savedata(dbdemocontroller.java:27)     @ com.acs.nomad.ui.controller.dbdemocontroller_$1.onclick(dbdemocontroller_.java:39)     @ android.view.view.performclick(view.java:3511)     @ android.view.view$performclick.run(view.java:14105)     @ android.os.handler.handlecallback(handler.java:605)     @ android.os.handler.dispatchmessage(handler.java:92)     @ android.os.looper.loop(looper.java:137)     @ android.app.activitythread.main(activitythread.java:4424)     @ java.lang.reflect.method.invokenative(native method)     @ java.lang.reflect.method.invoke(method.java:511)     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:784)     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:551)     @ dalvik.system.nativestart.main(native method) 

any please.

thansk

verify have included icudt46l.zip file within assets directory required sqlcipher android operate.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -