嘿我正在创建使用worklight native api的android应用程序,但是当出现连接错误并且我不知道如何处理它时我得到此异常
at com.worklight.location.internal.events.EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68)
09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at com.worklight.wlclient.WLRequest.processFailureResponse(WLRequest.java:597)
09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at com.worklight.wlclient.WLRequest.requestFinished(WLRequest.java:194)
09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at com.worklight.wlclient.InternalRequestSender.run(AsynchronousRequestSender.java:138)
09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
09-21 14:09:44.472 20167-20285/cloudappers.com.rta_ca E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
答案 0 :(得分:0)
我发现此异常是超时异常 所以我通过增加超时来解决这个问题
WLRequestOptions options = new WLRequestOptions();
options.setTimeout(60000);
我知道这不是永久解决异常的解决方案,但至少它永远不会再发生