android.os.NetworkOnMainThreadException

Exception #2461210

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1167

  • via Stack Overflow by jera
    ,
  • via Stack Overflow by Lalit Jadiya
    ,
  • via GitHub by door43app
    ,
  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Indri YunitaIndri Yunita
    6 times, last one
    jkjk
    8 times, last one
    BassiuzBassiuz
    Once,
    Unknown visitor
    Unknown visitorOnce,
    38 more bugmates