java.lang.RuntimeException

An error occured while executing doInBackground()


Solutions on the web18953

Solution icon of coderanch
via Coderanch by Gabriela Cristian, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by himani mittal, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by maulidan abdillah, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by egbai mmumene, 7 months ago
An error occured while executing doInBackground()

Solution icon of bugzilla
An error occured while executing doInBackground()

Solution icon of github
via GitHub by galaxyfeeder
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by pkirankmr
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
An error occured while executing doInBackground()

Solution icon of github
via GitHub by milon87
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by MrAlex1598
, 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:300) 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: rpc.RpcException: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 6789): connect failed: ECONNREFUSED (Connection refused) at rpc.RpcClient.invoke(RpcClient.java:53) at java.lang.reflect.Proxy.invoke(Proxy.java:397) at $Proxy0.arriba(Unknown Source) at com.example.franklin.pasapapel.MainActivity$arriba.doInBackground(MainActivity.java:80) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more Caused by: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 6789): connect failed: ECONNREFUSED (Connection refused) at libcore.io.IoBridge.connect(IoBridge.java:124) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:163) at java.net.Socket.startupSocket(Socket.java:590) at java.net.Socket.tryAllAddresses(Socket.java:128) at java.net.Socket.<init>(Socket.java:178) at java.net.Socket.<init>(Socket.java:150) at rpc.RpcClient.invoke(RpcClient.java:42) ... 9 more Caused by: android.system.ErrnoException: connect failed: ECONNREFUSED (Connection refused) at libcore.io.Posix.connect(Native Method) at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:111) at libcore.io.IoBridge.connectErrno(IoBridge.java:137) at libcore.io.IoBridge.connect(IoBridge.java:122) ... 16 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

152 times, 2 months ago
Once, 9 months ago
2 times, 1 year ago
236 times, 1 year ago
2 times, 1 year ago
50 more bugmates