java.net.ConnectException: Connection refused

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

    Chain Validation Failed

    GitHub | 1 month ago | rickysoung
    java.net.ConnectException: Connection timed out
  2. 0

    GitHub comment 43#267817581

    GitHub | 2 months ago | dj1818
    java.net.ConnectException: Connection refused
  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. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:334)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:196)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:356)
    6. java.net.Socket.connect(Socket.java:605)
    6 frames
  3. Android
    HttpEngine.sendRequest
    1. com.android.okhttp.internal.Platform.connectSocket(Platform.java:113)
    2. com.android.okhttp.Connection.connectSocket(Connection.java:196)
    3. com.android.okhttp.Connection.connect(Connection.java:172)
    4. com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
    5. com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
    6. com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
    7. com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
    7 frames
  4. com.android.okhttp
    HttpURLConnectionImpl.connect
    1. com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
    2. com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
    2 frames
  5. Meets Magento connector
    HttpTransportSE.call
    1. org.ksoap2.transport.ServiceConnectionSE.connect(ServiceConnectionSE.java:46)
    2. org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:68)
    2 frames
  6. mobile.shinam.com
    LoginActivity$1.onClick
    1. mobile.shinam.com.studentco.LoginActivity.callPHPWebServiceForAuthenticate(LoginActivity.java:138)
    2. mobile.shinam.com.studentco.LoginActivity.wsAuthenticate(LoginActivity.java:70)
    3. mobile.shinam.com.studentco.LoginActivity.access$000(LoginActivity.java:24)
    4. mobile.shinam.com.studentco.LoginActivity$1.onClick(LoginActivity.java:55)
    4 frames
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:5637)
    2. android.view.View$PerformClick.run(View.java:22429)
    3. android.os.Handler.handleCallback(Handler.java:751)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:154)
    6. android.app.ActivityThread.main(ActivityThread.java:6119)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
    2 frames