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

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Xperia Arc Social Phonebook Add Contact Problem - Android Enthusiasts Stack Exchange

    stackexchange.com | 1 year ago
    java.lang.RuntimeException: An error occured while executing doInBackground()
  2. 0

    Xperia Arc Social Phonebook Add Contact Problem

    Android Enthusiasts | 5 years ago | Olgun Kaya
    java.lang.RuntimeException: An error occured while executing doInBackground()

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Top level element must be ContactsSource

      at com.sonyericsson.android.socialphonebook.model.ExternalSource.inflate()
    2. com.sonyericsson.android
      WeakAsyncTask.doInBackground
      1. com.sonyericsson.android.socialphonebook.model.ExternalSource.inflate(ExternalSource.java:137)
      2. com.sonyericsson.android.socialphonebook.model.ExternalSource.inflate(ExternalSource.java:108)
      3. com.sonyericsson.android.socialphonebook.model.ContactsSource.superInflate(ContactsSource.java:119)
      4. com.sonyericsson.android.socialphonebook.model.ContactsSource.ensureInflated(ContactsSource.java:111)
      5. com.sonyericsson.android.socialphonebook.model.Sources.getInflatedSource(Sources.java:369)
      6. com.sonyericsson.android.socialphonebook.model.Sources.getAccounts(Sources.java:268)
      7. com.sonyericsson.android.socialphonebook.ui.EditContactActivity$AddContactTask.doInBackground(EditContactActivity.java:1438)
      8. com.sonyericsson.android.socialphonebook.ui.EditContactActivity$AddContactTask.doInBackground(EditContactActivity.java:1422)
      9. com.sonyericsson.android.socialphonebook.util.WeakAsyncTask.doInBackground(WeakAsyncTask.java:49)
      9 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:185)
      1 frame
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
      5. java.lang.Thread.run(Thread.java:1019)
      5 frames