java.net.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

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

  • 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.
    via by Himadri Singh,
  • 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.
    via by Himadri Singh,
  • Deploying web application in tomcat on Jenkins
    via Stack Overflow by Lusi
    ,
    • 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)

    Users with the same issue

    marcbouvierdavmarcbouvierdav
    1 times, last one,
    osvzsosvzs
    1 times, last one,
    Victor_ITVictor_IT
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    291 more bugmates