java.lang.RuntimeException: An error occurred 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

Samebug tips

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

,
Expert tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

Solutions on the web

via GitHub by Oupsla
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by inakianduaga
, 8 months ago
An error occurred while executing doInBackground()
via GitHub by philipwhiuk
, 1 year ago
An error occurred while executing doInBackground()
via GitHub by toyotabedzrock
, 2 years ago
An error occurred while executing doInBackground()
via GitHub by ltGuillaume
, 2 years ago
An error occurred while executing > doInBackground()
via GitHub by lognaturel
, 11 months ago
An error occurred while executing doInBackground()
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.calendar.CalendarProvider2 from ProcessRecord{aad9f2f 18717:com.android.calendar/u0a8} (pid=18717, uid=10008) requires android.permission.READ_CALENDAR or android.permission.WRITE_CALENDAR
at android.os.Parcel.readException(Parcel.java)
at android.os.Parcel.readException(Parcel.java)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java)
at android.app.ActivityThread.acquireProvider(ActivityThread.java)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java)
at android.content.ContentResolver.query(ContentResolver.java)
at android.content.ContentResolver.query(ContentResolver.java)
at com.miui.calendar.util.CalendarUtils.loadDaysOffInfo(CalendarUtils.java)
at com.android.calendar.homepage.AllInOneActivity$LoadDaysOffInfoTask.doInBackground(AllInOneActivity.java)
at com.android.calendar.homepage.AllInOneActivity$LoadDaysOffInfoTask.doInBackground(AllInOneActivity.java)
at android.os.AsyncTask$2.call(AsyncTask.java)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Once, 2 days ago
Once, 4 weeks ago
Once, 1 month ago
Once, 1 month ago
7 times, 1 month ago

Write tip

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