http-request icon indicating copy to clipboard operation
http-request copied to clipboard

Big bug

Open druidamix opened this issue 10 years ago • 2 comments

Making:

 Map<String, String> data = new HashMap<String, String>();
    while(cursor.moveToNext()){

        data.put(CsaAmbu.GarageReportP.DESCRIPTION,cursor.getString(CsaAmbu.GarageReportP.DESCRIPTION_INDEX));
        data.put(CsaAmbu.GarageReportP.DATE,cursor.getString(CsaAmbu.GarageReportP.DATE_INDEX));
        data.put(CsaAmbu.GarageReportP.KM,cursor.getString(CsaAmbu.GarageReportP.KM_INDEX));
        data.put(CsaAmbu.GarageReportP.UNIT_CODE,cursor.getString(CsaAmbu.GarageReportP.UNIT_CODE_INDEX));
        data.put(CsaAmbu.GarageReportP.PHOTO_PATH_SENT, cursor.getString(CsaAmbu.GarageReportP.PHOTO_PATH_SENT_INDEX));
        data.put(CsaAmbu.GarageReportP.IMEI,cursor.getString(CsaAmbu.GarageReportP.IMEI_INDEX));
        data.put(CsaAmbu.GarageReportP.LAT,cursor.getString(CsaAmbu.GarageReportP.LAT_INDEX));
        data.put(CsaAmbu.GarageReportP.LON,cursor.getString(CsaAmbu.GarageReportP.LON_INDEX));



        if(HttpRequest.post(CsaAmbuApplicationClass.getServerUri()).form(data).created()){

        }else{

        }

Next violation:

: java.lang.Throwable: Explicit termination method 'end' not called

05-20 12:27:11.978 E/StrictMode(11620): at dalvik.system.CloseGuard.open(CloseGuard.java:184)

05-20 12:27:11.978 E/StrictMode(11620): at java.util.zip.Inflater.(Inflater.java:82)

05-20 12:27:11.978 E/StrictMode(11620): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:96)

05-20 12:27:11.978 E/StrictMode(11620): at java.util.zip.GZIPInputStream.(GZIPInputStream.java:81)

05-20 12:27:11.978 E/StrictMode(11620): at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:528)

05-20 12:27:11.978 E/StrictMode(11620): at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:836)

05-20 12:27:11.978 E/StrictMode(11620): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)

05-20 12:27:11.978 E/StrictMode(11620): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486)

05-20 12:27:11.978 E/StrictMode(11620): at com.github.kevinsawicki.http.HttpRequest.code(HttpRequest.java:1520)

05-20 12:27:11.978 E/StrictMode(11620): at com.github.kevinsawicki.http.HttpRequest.created(HttpRequest.java:1557)

05-20 12:27:11.978 E/StrictMode(11620): at es.iws.csaambu.data.worker.PostGarageReportWorker.execute(PostGarageReportWorker.java:86)

05-20 12:27:11.978 E/StrictMode(11620): at es.iws.csaambu.data.service.PostService.doWakefulWork(PostService.java:56)

05-20 12:27:11.978 E/StrictMode(11620): at com.commonsware.cwac.wakeful.WakefulIntentService.onHandleIntent(WakefulIntentService.java:106)

05-20 12:27:11.978 E/StrictMode(11620): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)

05-20 12:27:11.978 E/StrictMode(11620): at android.os.Handler.dispatchMessage(Handler.java:99)

05-20 12:27:11.978 E/StrictMode(11620): at android.os.Looper.loop(Looper.java:137)

05-20 12:27:11.978 E/StrictMode(11620): at android.os.HandlerThread.run(HandlerThread.java:60)

05-20 12:27:11.978 W/System.err(11620): StrictMode VmPolicy violation with POLICY_DEATH; shutting down.

05-20 12:27:11.978 I/Process (11620): Sending signal. PID: 11620 SIG: 9

druidamix avatar May 20 '14 10:05 druidamix

+1 I met the same issue in version 5.6. Here is log

zhouyixiang avatar Jul 10 '14 03:07 zhouyixiang

@zhouyixiang Could you include the code that generated that error?

kevinsawicki avatar Jul 10 '14 15:07 kevinsawicki