android.os.NetworkOnMainThreadException

Stack Overflow | jera | 5 months ago
  1. 0

    Smb File download Error Android

    Stack Overflow | 1 year ago | Lalit Jadiya
    java.lang.ExceptionInInitializerError
  2. 0

    add backup to cloud

    GitHub | 1 year ago | door43app
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.os.NetworkOnMainThreadException

    No message provided

    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
  2. Android Platform
    StrictMode$AndroidBlockGuardPolicy.onNetwork
    1. android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147)
    1 frame
  3. Java RT
    InetAddress.getLocalHost
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:418)
    2. java.net.InetAddress.getLocalHost(InetAddress.java:396)
    2 frames
  4. jCIFS
    SmbFileOutputStream.<init>
    1. jcifs.netbios.NbtAddress.<clinit>(NbtAddress.java:187)
    2. jcifs.netbios.NbtAddress.getWINSAddress(NbtAddress.java:533)
    3. jcifs.UniAddress.<clinit>(UniAddress.java:62)
    4. jcifs.smb.SmbFile.getFirstAddress(SmbFile.java:864)
    5. jcifs.smb.SmbFile.connect(SmbFile.java:951)
    6. jcifs.smb.SmbFile.connect0(SmbFile.java:880)
    7. jcifs.smb.SmbFile.open0(SmbFile.java:972)
    8. jcifs.smb.SmbFile.open(SmbFile.java:1006)
    9. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
    10. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    11. jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
    11 frames
  5. md5ac18087b2af203d2f41df0f73b22a485
    BodyInspectionForm_TabFragment.onOptionsItemSelected
    1. md5ac18087b2af203d2f41df0f73b22a485.BodyInspectionForm_TabFragment.n_onOptionsItemSelected(Native Method)
    2. md5ac18087b2af203d2f41df0f73b22a485.BodyInspectionForm_TabFragment.onOptionsItemSelected(BodyInspectionForm_TabFragment.java:47)
    2 frames
  6. Android Platform
    Activity.onMenuItemSelected
    1. android.app.Fragment.performOptionsItemSelected(Fragment.java:2159)
    2. android.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:1988)
    3. android.app.Activity.onMenuItemSelected(Activity.java:2970)
    3 frames
  7. Android
    MenuPopupHelper.onItemClick
    1. com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1136)
    2. com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:761)
    3. com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
    4. com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:904)
    5. com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:894)
    6. com.android.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:186)
    6 frames
  8. Android Platform
    ActivityThread.main
    1. android.widget.AdapterView.performItemClick(AdapterView.java:305)
    2. android.widget.AbsListView.performItemClick(AbsListView.java:1146)
    3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3057)
    4. android.widget.AbsListView$3.run(AbsListView.java:3864)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:139)
    8. android.app.ActivityThread.main(ActivityThread.java:5298)
    8 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745)
    2 frames