java.util.concurrent.ExecutionException: android.os. NetworkOnMainThreadException

Google Groups | Bassam | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NetworkOnMainThreadException on Android

    Google Groups | 3 years ago | Bassam
    java.util.concurrent.ExecutionException: android.os. NetworkOnMainThreadException

  1. rp 1 times, last 6 months ago

Root Cause Analysis

  1. java.util.concurrent.ExecutionException

    android.os. NetworkOnMainThreadException

    at com.ning.http.client.providers.netty.NettyResponseFuture.abort()
  2. Asynchronous Http Client
    AsyncHttpClient.executeRequest
    1. com.ning.http.client.providers.netty.NettyResponseFuture.abort(NettyResponseFuture.java:342)
    2. com.ning.http.client.providers.netty.NettyAsyncHttpProvider.abort(NettyAsyncHttpProvider.java:1418)
    3. com.ning.http.client.providers.netty.NettyAsyncHttpProvider.doConnect(NettyAsyncHttpProvider.java:1106)
    4. com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:935)
    5. com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:499)
    5 frames
  3. dispatch
    Http.apply
    1. dispatch.HttpExecutor$class.apply(execution.scala:47)
    2. dispatch.Http.apply(execution.scala:12)
    3. dispatch.HttpExecutor$class.apply(execution.scala:42)
    4. dispatch.Http.apply(execution.scala:12)
    4 frames