java.io.IOException: MAIN_THREAD

Stack Overflow | Cuong Nguyen | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to use FirebaseInstanceId.getInstance().deleteInstanceId()?

    Stack Overflow | 5 months ago | Johannes
    java.io.IOException: MAIN_THREAD W/System.err:
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    java.io.IOException: Received authentication challenge is null in ICS 4.0.3

    Stack Overflow | 5 years ago | Haris
    java.io.IOException: Received authentication challenge is null 10-17 14:54:13.284: W/System.err(868): at libcore.net.http.HttpURLConnectionImpl.processAuthHeader(HttpURLConnectionImpl.java:397) 10-17 14:54:13.284: W/System.err(868): at libcore.net.http.HttpURLConnectionImpl.processResponseHeaders(HttpURLConnectionImpl.java:345) 10-17 14:54:13.304: W/System.err(868): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:276) 10-17 14:54:13.324: W/System.err(868): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:479) 10-17 14:54:13.324: W/System.err(868): at com.remote.synchronizer.haris.CustomHttpClient.executeGet(CustomHttpClient.java:131) 10-17 14:54:13.354: W/System.err(868): at com.remote.synchronizer.haris.OptionsActivity$1$3$1.run(OptionsActivity.java:87) 10-17 14:54:13.364: W/System.err(868): at android.os.Handler.handleCallback(Handler.java:605) 10-17 14:54:13.384: W/System.err(868): at android.os.Handler.dispatchMessage(Handler.java:92) 10-17 14:54:13.384: W/System.err(868): at android.os.Looper.loop(Looper.java:137) 10-17 14:54:13.404: W/System.err(868): at android.app.ActivityThread.main(ActivityThread.java:4424) 10-17 14:54:13.424: W/System.err(868): at java.lang.reflect.Method.invokeNative(Native Method) 10-17 14:54:13.424: W/System.err(868): at java.lang.reflect.Method.invoke(Method.java:511) 10-17 14:54:13.454: W/System.err(868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

    Root Cause Analysis

    1. java.io.IOException

      MAIN_THREAD

      at com.google.firebase.iid.zzd.zzb()
    2. com.google.firebase
      FirebaseInstanceId.deleteInstanceId
      1. com.google.firebase.iid.zzd.zzb(Unknown Source)
      2. com.google.firebase.iid.FirebaseInstanceId.deleteInstanceId(Unknown Source)
      2 frames
    3. jp.seesaa.itmama
      SettingFragment.onSharedPreferenceChanged
      1. jp.seesaa.itmama.push.PushUtil.setPushSetting(PushUtil.java:32)
      2. jp.seesaa.itmama.ui.main.setting.SettingFragment.onSharedPreferenceChanged(SettingFragment.java:66)
      2 frames
    4. Android Platform
      SharedPreferencesImpl$EditorImpl.apply
      1. android.app.SharedPreferencesImpl$EditorImpl.notifyListeners(SharedPreferencesImpl.java:476)
      2. android.app.SharedPreferencesImpl$EditorImpl.apply(SharedPreferencesImpl.java:384)
      2 frames
    5. Android Support v4
      SharedPreferencesCompat$EditorCompat.apply
      1. android.support.v4.content.EditorCompatGingerbread.apply(EditorCompatGingerbread.java:25)
      2. android.support.v4.content.SharedPreferencesCompat$EditorCompat$EditorHelperApi9Impl.apply(SharedPreferencesCompat.java:45)
      3. android.support.v4.content.SharedPreferencesCompat$EditorCompat.apply(SharedPreferencesCompat.java:67)
      3 frames
    6. android.support.v7
      Preference$1.onClick
      1. android.support.v7.preference.Preference.tryCommit(Preference.java:1353)
      2. android.support.v7.preference.Preference.persistBoolean(Preference.java:1558)
      3. android.support.v7.preference.TwoStatePreference.setChecked(TwoStatePreference.java:79)
      4. android.support.v7.preference.TwoStatePreference.onClick(TwoStatePreference.java:64)
      5. android.support.v7.preference.Preference.performClick(Preference.java:971)
      6. android.support.v7.preference.Preference.performClick(Preference.java:957)
      7. android.support.v7.preference.SwitchPreferenceCompat.performClick(SwitchPreferenceCompat.java:203)
      8. android.support.v7.preference.Preference$1.onClick(Preference.java:145)
      8 frames
    7. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4780)
      2. android.view.View$PerformClick.run(View.java:19866)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:135)
      6. android.app.ActivityThread.main(ActivityThread.java:5254)
      6 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames