Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

The application doesn't work on Android 5.0 Lollipop #15

Closed
pasin opened this issue Dec 19, 2014 · 8 comments
Closed

The application doesn't work on Android 5.0 Lollipop #15

pasin opened this issue Dec 19, 2014 · 8 comments
Assignees

Comments

@pasin
Copy link
Contributor

pasin commented Dec 19, 2014

The app has been tested with https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin.

See the attached image for the result.

screen

@jchris
Copy link
Contributor

jchris commented Dec 19, 2014

that's looks bad. can you share logs from the device?

@pasin
Copy link
Contributor Author

pasin commented Dec 19, 2014

Here is the log captured from the logcat:

D/CordovaWebViewClient( 1230): onPageStarted(file:///android_asset/www/index.html)
D/CordovaActivity( 1230): onMessage(onPageStarted,file:///android_asset/www/index.html)
D/CordovaLog( 1230): file:///android_asset/www/index.html: Line 24 : The key "target-densitydpi" is not supported.
I/chromium( 1230): [INFO:CONSOLE(24)] "The key "target-densitydpi" is not supported.", source: file:///android_asset/www/index.html (24)
D/CordovaActivity( 1230): onMessage(spinner,stop)
D/CordovaNetworkManager( 1230): Connection Type: 3g
D/CordovaNetworkManager( 1230): Connection Extra Info: epc.tmobile.com
D/CordovaActivity( 1230): onMessage(networkconnection,3g)
D/CordovaNetworkManager( 1230): Connection Type: 3g
D/CordovaNetworkManager( 1230): Connection Extra Info: epc.tmobile.com
D/CordovaWebViewClient( 1230): onPageFinished(file:///android_asset/www/index.html)
D/CordovaActivity( 1230): onMessage(onPageFinished,file:///android_asset/www/index.html)
D/CordovaLog( 1230): file:///android_asset/www/js/index.js: Line 582 : getURL: [false,"http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/"]
I/chromium( 1230): [INFO:CONSOLE(582)] "getURL: [false,"http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/"]", source: file:///android_asset/www/js/index.js (582)
W/com.couchbase.lite( 1230): Listener: authHeader is null
W/com.couchbase.lite( 1230): Listener: Unauthorized -- requestCredentials not given or do not match allowed credentials
D/CordovaLog( 1230): file:///android_asset/www/js/index.js: Line 651 : ["before create db put",{"status":404},{"statusText":"Not found","status":404,"responseURL":"http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","response":"{\"status\":404}","responseType":"","responseXML":null,"responseText":"{\"status\":404}","upload":{"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null,"seq_id":1,"id":"1: GET http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","_id":"1: GET http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","timeoutTimer":8,"statusCode":404,"body":{"status":404}},null]
I/chromium( 1230): [INFO:CONSOLE(651)] "["before create db put",{"status":404},{"statusText":"Not found","status":404,"responseURL":"http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","response":"{\"status\":404}","responseType":"","responseXML":null,"responseText":"{\"status\":404}","upload":{"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null,"seq_id":1,"id":"1: GET http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","_id":"1: GET http://dc6b4958-1f46-411f-b311-4e124189bf13:452037ad-9751-4b4a-9ab6-8a1a7bc89f3a@localhost:5984/todo","timeoutTimer":8,"statusCode":404,"body":{"status":404}},null]", source: file:///android_asset/www/js/index.js (651)
W/com.couchbase.lite( 1230): Listener: authHeader is null
W/com.couchbase.lite( 1230): Listener: Unauthorized -- requestCredentials not given or do not match allowed credentials
E/com.couchbase.lite( 1230): Router: Router unable to route request to do_PUT_Database
E/com.couchbase.lite( 1230): java.lang.reflect.InvocationTargetException
E/com.couchbase.lite( 1230):    at java.lang.reflect.Method.invoke(Native Method)
E/com.couchbase.lite( 1230):    at java.lang.reflect.Method.invoke(Method.java:372)
E/com.couchbase.lite( 1230):    at com.couchbase.lite.router.Router.start(Router.java:466)
E/com.couchbase.lite( 1230):    at com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128)
E/com.couchbase.lite( 1230):    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
E/com.couchbase.lite( 1230):    at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)
E/com.couchbase.lite( 1230):    at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)
E/com.couchbase.lite( 1230):    at Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)
E/com.couchbase.lite( 1230):    at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
E/com.couchbase.lite( 1230):    at java.lang.Thread.run(Thread.java:818)
E/com.couchbase.lite( 1230): Caused by: java.lang.RuntimeException: Failed to load storage.  Resource: services/com.couchbase.lite.storage.SQLiteStorageEngine classname: 
E/com.couchbase.lite( 1230):    at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:45)
E/com.couchbase.lite( 1230):    at com.couchbase.lite.Database.open(Database.java:905)
E/com.couchbase.lite( 1230):    at com.couchbase.lite.router.Router.do_PUT_Database(Router.java:756)
E/com.couchbase.lite( 1230):    ... 10 more
E/com.couchbase.lite( 1230): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.io.InputStream.read(byte[], int, int)' on a null object reference
E/com.couchbase.lite( 1230):    at com.couchbase.lite.util.TextUtils.read(TextUtils.java:52)
E/com.couchbase.lite( 1230):    at com.couchbase.lite.storage.SQLiteStorageEngineFactory.createStorageEngine(SQLiteStorageEngineFactory.java:38)
E/com.couchbase.lite( 1230):    ... 12 more
W/com.couchbase.lite( 1230): Listener: authHeader is null
W/com.couchbase.lite( 1230): Listener: Unauthorized -- requestCredentials not given or do not match allowed credentials

@pasin
Copy link
Contributor Author

pasin commented Mar 4, 2015

@hideki could you look at this issue? It has the issue only with Lollipop.

@hideki
Copy link

hideki commented Mar 5, 2015

I tested ToDo Lite for PhoneGap with Nexus 6 (Real device), Standard Android Emulator with Nexus 5 API 21 ARM, and Genymotion API 21. But I could not reproduce this this issue with these three platforms.

@hideki hideki closed this as completed Mar 5, 2015
@zebra1024
Copy link

I have this same issue on my Verizon Galaxy S5 (SM-G900V) running Android version 5

@hideki
Copy link

hideki commented Mar 6, 2015

Hi @zebra1024
Could you please try to recreate ToDo Lite PhoneGap app from scratch with following README's instruction? https://github.com/couchbaselabs/TodoLite-PhoneGap/blob/master/README.md
As @pasin created PhoneGap plugin with CBL Android 1.0.4 recently, I assume it solved this issue.
Thanks!

@zebra1024
Copy link

Thanks - 1.0.4 resolved the issue.

@pasin
Copy link
Contributor Author

pasin commented Mar 6, 2015

It seems to me that this issue randomly happens as it also happened to me when I tested 1.0.4 before publishing. We may need to keep an eye up on this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants