java.lang.RuntimeException

An error occured while executing doInBackground()

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web18652

  • via JIRA by Dong Jun, 10 months ago
    An error occured while executing doInBackground()
  • via JIRA by Dor Druker, 1 year ago
    An error occured while executing doInBackground()
  • via JIRA by Gao Dexiang, 1 year ago
    An error occured while executing doInBackground()
  • Stack trace

    • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:304) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.SecurityException: Permission denied (missing INTERNET permission?) at java.net.InetAddress.lookupHostByName(InetAddress.java:451) at java.net.InetAddress.getLocalHost(InetAddress.java:396) at com.example.george.droidscanner.Node.queryHost(Node.java:44) at com.example.george.droidscanner.Node.<init>(Node.java:24) at com.example.george.droidscanner.MainActivity$TaskReadAddresses.readAddresses(MainActivity.java:95) at com.example.george.droidscanner.MainActivity$TaskReadAddresses.doInBackground(MainActivity.java:67) at com.example.george.droidscanner.MainActivity$TaskReadAddresses.doInBackground(MainActivity.java:53) at android.os.AsyncTask$2.call(AsyncTask.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname) at libcore.io.Posix.android_getaddrinfo(Native Method) at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:55) at java.net.InetAddress.lookupHostByName(InetAddress.java:438) ... 12 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    3 times, 4 days ago
    274 times, 1 week ago
    17 times, 2 weeks ago
    50 times, 3 weeks ago
    3 times, 1 month ago
    38 more bugmates