EventTransmitterPiggybacker

EventTransmitterPiggybacker

本文介绍了EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68)试图调用任何工作灯适配器时的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我创建它使用工作灯原生API Android应用程序,但我得到这个异​​常当有连接错误,我不知道如何处理它。

 在com.worklight.location.internal.events.EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68)
    09-21 14:09:44.472 20167-20285 / cloudappers.com.rta_ca E / AndroidRuntime:在com.worklight.wlclient.WLRequest.processFailureResponse(WLRequest.java:597)
    09-21 14:09:44.472 20167-20285 / cloudappers.com.rta_ca E / AndroidRuntime:在com.worklight.wlclient.WLRequest.requestFinished(WLRequest.java:194)
    09-21 14:09:44.472 20167-20285 / cloudappers.com.rta_ca E / AndroidRuntime:在com.worklight.wlclient.InternalRequestSender.run(AsynchronousRequestSender.java:138)
    09-21 14:09:44.472 20167-20285 / cloudappers.com.rta_ca E / AndroidRuntime:在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    09-21 14:09:44.472 20167-20285 / cloudappers.com.rta_ca E / AndroidRuntime:在java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:587)


解决方案

我发现,这个例外是超时异常
所以我通过增加超时解决了这个问题。

  WLRequestOptions选项=新WLRequestOptions();
    options.setTimeout(60000);

我知道这不是一个将永久解决异常的解决方案,但至少它不会再发生。

Hey i'm creating android app which using worklight native api but i'm getting this Exception when there is connection error and i don't know how to handle it

 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)
解决方案

I have found that this exception is a timeout exception so i solved this issue by increasing the timeout

WLRequestOptions options = new WLRequestOptions();
    options.setTimeout(60000);

i know this is not the solution which will solve the exception permanently but at least it never happens again

这篇关于EventTransmitterPiggybacker.onFailure(EventTransmitterPiggybacker.java:68)试图调用任何工作灯适配器时的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 01:12