Companion app released on Play Store

Sergey Starosek sergey.starosek at gmail.com
Sat Mar 2 09:29:50 PST 2013


On Sat, Mar 02, 2013 at 06:53:34PM +0200, Sergey Starosek wrote:
> I confirm that Play store version doesn't work on both of my devices:
> 
> - HTC Desire (CM 7.2.0.1, Android 2.3.7, rooted)
> - Samsung GT-P3100 (Android 4.1.2)
> 
> On the other hand, I've build apk from git master and it works.
> Trying to figure out what that error means.

Here is stacktrace from logcat:

D/WsClient( 4599): Calling
http://api.hohndel.org/api/dive/get/?login=xxxxxxxxxxxxxxxxxxxxxxxxx
D/WsClient( 4599): getAllDives : error
D/WsClient( 4599): org.json.JSONException: No value for dives
D/WsClient( 4599): 	at org.json.JSONObject.get(JSONObject.java:354)
D/WsClient( 4599): 	at org.json.JSONObject.getJSONArray(JSONObject.java:544)
D/WsClient( 4599): 	at org.subsurface.ws.json.DiveParser.parseDives(DiveParser.java:31)
D/WsClient( 4599): 	at org.subsurface.ws.WsClient.getAllDives(WsClient.java:60)
D/WsClient( 4599): 	at org.subsurface.controller.DiveController.startUpdate(DiveController.java:156)
D/WsClient( 4599): 	at org.subsurface.HomeActivity$4.doInBackground(HomeActivity.java:120)
D/WsClient( 4599): 	at org.subsurface.HomeActivity$4.doInBackground(HomeActivity.java:1)
D/WsClient( 4599): 	at android.os.AsyncTask$2.call(AsyncTask.java:185)
D/WsClient( 4599): 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
D/WsClient( 4599): 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
D/WsClient( 4599): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
D/WsClient( 4599): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
D/WsClient( 4599): 	at java.lang.Thread.run(Thread.java:1019)
D/HomeActivity( 4599): Could not complete update
D/HomeActivity( 4599): org.subsurface.ws.WsException
D/HomeActivity( 4599): 	at org.subsurface.ws.WsClient.getAllDives(WsClient.java:66)
D/HomeActivity( 4599): 	at org.subsurface.controller.DiveController.startUpdate(DiveController.java:156)
D/HomeActivity( 4599): 	at org.subsurface.HomeActivity$4.doInBackground(HomeActivity.java:120)
D/HomeActivity( 4599): 	at org.subsurface.HomeActivity$4.doInBackground(HomeActivity.java:1)
D/HomeActivity( 4599): 	at android.os.AsyncTask$2.call(AsyncTask.java:185)
D/HomeActivity( 4599): 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
D/HomeActivity( 4599): 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
D/HomeActivity( 4599): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
D/HomeActivity( 4599): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
D/HomeActivity( 4599): 	at java.lang.Thread.run(Thread.java:1019)


This seems to be fixed by commit a3d9d3b "Fixed parse error when no dives in lists", thanks to Aurélien.

Sergey


More information about the subsurface mailing list