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

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to read a file in Internet with Android Studio with AsyncTask?

    Stack Overflow | 10 months ago | Elia D'Amato
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  2. 0

    Gives me a doInBackground() related error when I have no such method

    Stack Overflow | 6 months ago | Onur Adrianopolos
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android not granting permissions

    Stack Overflow | 6 months ago | Atilla Adrianopolos
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  5. 0

    Android BackgroundTask Throwing Run-time Error

    Stack Overflow | 3 months ago | Mark James
    java.lang.RuntimeException: An error occurred while executing doInBackground()
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.system.ErrnoException

    android_getaddrinfo failed: EACCES (Permission denied)

    at libcore.io.Posix.android_getaddrinfo()
  2. Android
    ForwardingOs.android_getaddrinfo
    1. libcore.io.Posix.android_getaddrinfo(Native Method)
    2. libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55)
    2 frames
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:451)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:252)
    3. java.net.InetAddress.getAllByName(InetAddress.java:215)
    3 frames
  4. Android
    HttpEngine.sendRequest
    1. com.android.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
    2. com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:188)
    3. com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:157)
    4. com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:100)
    5. com.android.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:357)
    6. com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:340)
    7. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
    8. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
    8 frames
  5. com.android.okhttp
    HttpURLConnectionImpl.connect
    1. com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433)
    2. com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:114)
    2 frames
  6. com.example.prof_mohamedatef
    MainFragment$Fetch_Movies_data.doInBackground
    1. com.example.prof_mohamedatef.tabletfragments.MainFragment$Fetch_Movies_data.doInBackground(MainFragment.java:175)
    2. com.example.prof_mohamedatef.tabletfragments.MainFragment$Fetch_Movies_data.doInBackground(MainFragment.java:125)
    2 frames
  7. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:295)
    1 frame
  8. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  9. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
    1 frame
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames