Failed to load storage. Resource: services/com.couchbase.lite.storage.SQLiteStorageEngine in android

60 views
Skip to first unread message

PRASANNA KUMAR

unread,
Aug 25, 2014, 10:05:12 AM8/25/14
to mobile-c...@googlegroups.com
Hi All,

I been working one project using cbl android,But where am facing  one problem using google maps.
If we want to use google maps in android,we need to install "Google play service" application here,but problem is if i install that google map(app) where am facing problem.

>But in my android application (With cbl android code),it is not creating local database and also not doing in replications 

my code is here way of creating localdb

AndroidContext androidContext = new AndroidContext(mContext);
Manager manager = new Manager(androidContext, Manager.DEFAULT_OPTIONS);
Database database = manager.getDatabase(configDataBaseName);

But where am getting RuntimeException like:

08-25 18:42:32.136: W/System.err(12388): java.lang.RuntimeException: Failed to load storage.  Resource: services/com.couchbase.lite.storage.SQLiteStorageEngine classname: 
08-25 18:42:32.136: W/System.err(12388): at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:45)
08-25 18:42:32.136: W/System.err(12388): at com.couchbase.lite.Database.open(Database.java:908)
08-25 18:42:32.136: W/System.err(12388): at com.couchbase.lite.Manager.getDatabase(Manager.java:227)
08-25 18:42:32.136: W/System.err(12388): at com.sampla.cbllite.EDLiveProjects.startCBLite(EDLiveProjects.java:66)
08-25 18:42:32.136: W/System.err(12388): at com.sampla.cbllite.EDManager$ConfigReplicationAsyncTask.onPostExecute(EDManager.java:77)
08-25 18:42:32.136: W/System.err(12388): at com.sampla.cbllite.EDManager$ConfigReplicationAsyncTask.onPostExecute(EDManager.java:1)
08-25 18:42:32.136: W/System.err(12388): at android.os.AsyncTask.finish(AsyncTask.java:632)
08-25 18:42:32.136: W/System.err(12388): at android.os.AsyncTask.access$600(AsyncTask.java:177)
08-25 18:42:32.136: W/System.err(12388): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
08-25 18:42:32.136: W/System.err(12388): at android.os.Handler.dispatchMessage(Handler.java:102)
08-25 18:42:32.136: W/System.err(12388): at android.os.Looper.loop(Looper.java:136)
08-25 18:42:32.136: W/System.err(12388): at android.app.ActivityThread.main(ActivityThread.java:5017)
08-25 18:42:32.136: W/System.err(12388): at java.lang.reflect.Method.invokeNative(Native Method)
08-25 18:42:32.146: W/System.err(12388): at java.lang.reflect.Method.invoke(Method.java:515)
08-25 18:42:32.146: W/System.err(12388): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-25 18:42:32.146: W/System.err(12388): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-25 18:42:32.146: W/System.err(12388): at dalvik.system.NativeStart.main(Native Method)
08-25 18:42:32.146: W/System.err(12388): Caused by: java.lang.NullPointerException
08-25 18:42:32.146: W/System.err(12388): at com.couchbase.lite.util.TextUtils.read(TextUtils.java:52)
08-25 18:42:32.146: W/System.err(12388): at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:38)
08-25 18:42:32.146: W/System.err(12388): ... 16 more

>If i uninstall the google play service in my device then it is working fine 
Am not understanding what is problem here.

>Any suggestions how to solve this  problems ?

Thank's
prasanna



 


Traun Leyden

unread,
Aug 26, 2014, 11:15:10 AM8/26/14
to mobile-c...@googlegroups.com
Hi Prassana,

I have no idea what's causing this.  Can you file it in a github ticket so we can track it?

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1e5a4a92-ced4-47fe-860e-2a15ad5d9696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages