java.lang.RuntimeException: An error occurred while executing doInBackground()

newrelic.com | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Android - NewRelic/Retrofit - bug with okhttp on every request

    Stack Overflow | 2 years ago | danielgomezrico
    java.lang.IllegalAccessError: Method 'void com.squareup.okhttp.Call.(com.squareup.okhttp.OkHttpClient, com.squareup.okhttp.Request)' is inaccessible to class 'com.newrelic.agent.android.instrumentation.okhttp2.CallExtension' (declaration of 'com.newrelic.agent.android.instrumentation.okhttp2.CallExtension' appears in /data/app/com.thepickupnetwork.customer.app-2/base.apk)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      Method 'void com.squareup.okhttp.Call.<init>(com.squareup.okhttp.OkHttpClient, com.squareup.okhttp.Request)' is inaccessible to class 'com.newrelic.agent.android.instrumentation.okhttp2.CallExtension' (declaration of 'com.newrelic.agent.android.instrumentation.okhttp2.CallExtension' appears in /data/data/com.chotot.vn.dev/files/instant-run/dex/slice-android-agent-5.5.0_1c58c0c37b3caecd7ab74d75a440e140a05e9868-classes.dex)

      at com.newrelic.agent.android.instrumentation.okhttp2.CallExtension.<init>()
    2. com.newrelic.agent
      OkHttp2Instrumentation.newCall
      1. com.newrelic.agent.android.instrumentation.okhttp2.CallExtension.<init>(CallExtension.java:32)
      2. com.newrelic.agent.android.instrumentation.okhttp2.OkHttp2Instrumentation.newCall(OkHttp2Instrumentation.java:37)
      2 frames
    3. com.lib701.connection
      ACRESTClientAuth.makeSynchronousRESTCallWithError
      1. com.lib701.connection.ACRESTClientAuth.sendRequestToAPI(ACRESTClientAuth.java:97)
      2. com.lib701.connection.ACRESTClientAuth.makeSynchronousRESTCallWithError(ACRESTClientAuth.java:49)
      2 frames
    4. com.chotot.vn
      BlocketLoader.loadInBackground
      1. com.chotot.vn.loaders.BlocketLoader.loadInBackground(BlocketLoader.java:128)
      2. com.chotot.vn.loaders.BlocketLoader.loadInBackground(BlocketLoader.java:18)
      2 frames
    5. Android Support v4
      ModernAsyncTask$2.call
      1. android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:296)
      2. android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:54)
      3. android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:42)
      4. android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:128)
      4 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      4. java.lang.Thread.run(Thread.java:818)
      4 frames