I am using App42 leaderboard service, and facing the following exception sometime when I save user score.
18:45:23.960 com.shephertz.app42.paas.sdk.java.App42Exception: org.json.JSONException: JSONObject["appErrorCode"] not a string.
» 18:45:23.960 at com.shephertz.app42.paas.sdk.java.game.ScoreBoardService.saveUserScore(ScoreBoardService.java:114)
» 18:45:23.960 at models.leaderboard.TVShowLeaderboardDao.saveUserScore(TVShowLeaderboardDao.java:106)
» 18:45:23.960 at com.evertest.activemq.consumer.TVShowLeaderboardConsumer.consumerStart(TVShowLeaderboardConsumer.java:55)
» 18:45:23.960 at com.evertest.activemq.consumer.TVShowLeaderboardConsumer.run(TVShowLeaderboardConsumer.java:74)
» 18:45:23.960 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
» 18:45:23.960 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
» 18:45:23.960 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
» 18:45:23.960 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
» 18:45:23.960 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
» 18:45:23.960 at java.lang.Thread.run(Thread.java:722)
» 18:45:23.960 Caused by: org.json.JSONException: JSONObject["appErrorCode"] not a string. Exception
» 18:45:23.960 at org.json.JSONObject.getString(JSONObject.java:644)
» 18:45:23.960 at com.shephertz.app42.paas.sdk.java.connection.RESTConnectorAsync.handleException(RESTConnectorAsync.java:325) Exception
» 18:45:23.960 at com.shephertz.app42.paas.sdk.java.connection.RESTConnectorAsync.executePost(RESTConnectorAsync.java:132)
» 18:45:23.960 at com.shephertz.app42.paas.sdk.java.game.ScoreBoardService.saveUserScore(ScoreBoardService.java:108)
» 18:45:23.960 ... 9 more
I just switch to App42_JAVA_SDK_2.5.jar from 2.4.1, but it didn't solve the issue.
Any idea on this?