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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by GoogleCodeExporter
, 1 year ago
An error occured while executing doInBackground()
via bigresource.com by Unknown author, 1 year ago
An error occured while executing doInBackground()
via Stack Overflow by sagar
, 2 years ago
An error occured while executing doInBackground()
via Stack Overflow by Mohammed Gomaa
, 2 years ago
An error occured while executing doInBackground()
via Stack Overflow by Fansher
, 2 years ago
An error occured while executing doInBackground()
via Stack Overflow by smriti3
, 2 years ago
An error occured while executing doInBackground()
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.(Handler.java:121)
at android.location.LocationManager$ListenerTransport$1.(LocationManager.java:128)
at android.location.LocationManager$ListenerTransport.(LocationManager.java:126)
at android.location.LocationManager._requestLocationUpdates(LocationManager.java:697)
at com.WasserSportLotse.WasserSportLotse$LocationControl.doInBackground(WasserSportLotse.java:62)
at com.WasserSportLotse.WasserSportLotse$LocationControl.doInBackground(WasserSportLotse.java:1)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
at java.util.concurrent.FutureTask.run(FutureTask.java:122)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:648)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:673)
at java.lang.Thread.run(Thread.java:1060)

Users with the same issue

Once, 4 months ago
27 times, 6 months ago
288 times, 7 months ago
128 times, 10 months ago
11 times, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.