java.net.ConnectException: Connection refused: connect

Terracotta Project Issue Tracker | Himadri Singh | 7 years ago
  1. 0

    ehcache-monitor-1.0.0-beta/bin $ ./shutdown.bat Couldn't shut server down at 10.1.1.3:9889 Exception in thread "main" java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at sun.net.NetworkClient.doConnect(NetworkClient.java:158) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718) at org.terracotta.ehcachedx.monitor.util.HttpUtils.performHttpConnectionRequest(HttpUtils.java:70) at org.terracotta.ehcachedx.monitor.util.HttpUtils.getHttpConnectionContent(HttpUtils.java:29) at org.terracotta.ehcachedx.monitor.util.RestProxy.shutdown(RestProxy.java:60) at org.terracotta.ehcachedx.monitor.StandaloneServer$Command$2.execute(StandaloneServer.java:142) at org.terracotta.ehcachedx.monitor.StandaloneServer.main(StandaloneServer.java:54) It should give a nice message same as we have for tc.

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.net.ConnectException: Connection refused: connect
  2. 0

    ehcache-monitor-1.0.0-beta/bin $ ./shutdown.bat Couldn't shut server down at 10.1.1.3:9889 Exception in thread "main" java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at sun.net.NetworkClient.doConnect(NetworkClient.java:158) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718) at org.terracotta.ehcachedx.monitor.util.HttpUtils.performHttpConnectionRequest(HttpUtils.java:70) at org.terracotta.ehcachedx.monitor.util.HttpUtils.getHttpConnectionContent(HttpUtils.java:29) at org.terracotta.ehcachedx.monitor.util.RestProxy.shutdown(RestProxy.java:60) at org.terracotta.ehcachedx.monitor.StandaloneServer$Command$2.execute(StandaloneServer.java:142) at org.terracotta.ehcachedx.monitor.StandaloneServer.main(StandaloneServer.java:54) It should give a nice message same as we have for tc.

    Terracotta Project Issue Tracker | 7 years ago | Himadri Singh
    java.net.ConnectException: Connection refused: connect
  3. 0

    Marvel - Error connecting to [:9200]

    GitHub | 2 years ago | bittusarkar
    java.net.ConnectException: Connection refused: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.net.ConnectException: Connection refused: ... | Oracle Community

    oracle.com | 8 months ago
    java.net.ConnectException: Connection refused: connect
  6. 0

    how to handle exception this org.springframework.integration.MessageHandlingException: HTTP request execution failed for URI [{outBoundUrl}]

    Stack Overflow | 2 years ago | user3346490
    org.springframework.integration.MessageHandlingException: HTTP request execution failed for URI [{outBoundUrl}]

  1. tvrmsmith 1 times, last 3 weeks ago
  2. musketyr 2 times, last 2 months ago
  3. Malcshour 1 times, last 6 months ago
25 unregistered visitors
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: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    HttpURLConnection.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    6. java.net.Socket.connect(Socket.java:519)
    7. sun.net.NetworkClient.doConnect(NetworkClient.java:158)
    8. sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    9. sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    10. sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    11. sun.net.www.http.HttpClient.New(HttpClient.java:306)
    12. sun.net.www.http.HttpClient.New(HttpClient.java:323)
    13. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:852)
    14. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:793)
    15. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:718)
    15 frames
  3. org.terracotta.ehcachedx
    StandaloneServer.main
    1. org.terracotta.ehcachedx.monitor.util.HttpUtils.performHttpConnectionRequest(HttpUtils.java:70)
    2. org.terracotta.ehcachedx.monitor.util.HttpUtils.getHttpConnectionContent(HttpUtils.java:29)
    3. org.terracotta.ehcachedx.monitor.util.RestProxy.shutdown(RestProxy.java:60)
    4. org.terracotta.ehcachedx.monitor.StandaloneServer$Command$2.execute(StandaloneServer.java:142)
    5. org.terracotta.ehcachedx.monitor.StandaloneServer.main(StandaloneServer.java:54)
    5 frames