android.os.NetworkOnMainThreadException

Stack Overflow | skynyrd | 4 years ago
  1. 0

    How Can GetResponse From The web-Service Using Android

    Stack Overflow | 4 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.lo2i03/com.example.lo2i03.MainActivity}: android.os.NetworkOnMainThreadException
  2. 0

    How to make a get request in android service

    Stack Overflow | 1 year ago | Mohd Riaz
    android.os.NetworkOnMainThreadException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    What is bad here?

    Stack Overflow | 2 years ago | xodos
    android.os.NetworkOnMainThreadException
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:1117)
    1 frame
  3. Java RT
    InetAddress.getAllByName
    1. java.net.InetAddress.lookupHostByName(InetAddress.java:385)
    2. java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    3. java.net.InetAddress.getAllByName(InetAddress.java:214)
    3 frames
  4. Android
    HttpURLConnectionImpl.connect
    1. libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
    2. libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
    3. libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:341)
    4. libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
    5. libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
    6. libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:315)
    7. libcore.net.http.HttpEngine.connect(HttpEngine.java:310)
    8. libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:289)
    9. libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:239)
    10. libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:80)
    10 frames
  5. Meets Magento connector
    HttpTransportSE.call
    1. org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:76)
    2. org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:146)
    3. org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)
    3 frames
  6. com.example.webserviceexample
    MainActivity$1.onClick
    1. com.example.webserviceexample.MainActivity$1.onClick(MainActivity.java:61)
    1 frame
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4084)
    2. android.view.View$PerformClick.run(View.java:16966)
    3. android.os.Handler.handleCallback(Handler.java:615)
    4. android.os.Handler.dispatchMessage(Handler.java:92)
    5. android.os.Looper.loop(Looper.java:137)
    6. android.app.ActivityThread.main(ActivityThread.java:4745)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame