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.

  • GitHub comment 22#60719720
    via GitHub by xingfengshen
    ,
  • deploy error
    via GitHub by yuanhailong
    ,
    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:286) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.springframework.http.client.CommonsClientHttpRequest.executeInternal(CommonsClientHttpRequest.java:85) at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:50) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:519) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:495) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:446) at org.motechproject.openmrs19.resource.impl.BaseResource.exchange(BaseResource.java:88) at org.motechproject.openmrs19.resource.impl.BaseResource.exchange(BaseResource.java:83) at org.motechproject.openmrs19.resource.impl.BaseResource.getJson(BaseResource.java:36) at org.motechproject.openmrs19.resource.impl.UserResourceImpl.queryForUsersByUsername(UserResourceImpl.java:33) at org.motechproject.openmrs19.service.impl.OpenMRSUserServiceImpl.getUserByUserName(OpenMRSUserServiceImpl.java:172) at org.motechproject.openmrs19.service.impl.OpenMRSUserServiceImpl.validateUserNameUsage(OpenMRSUserServiceImpl.java:190) at org.motechproject.openmrs19.service.impl.OpenMRSUserServiceImpl.createUser(OpenMRSUserServiceImpl.java:53) at org.motechproject.openmrs19.it.MRSUserServiceIT.createUser(MRSUserServiceIT.java:160) at org.motechproject.openmrs19.it.MRSUserServiceIT.setUp(MRSUserServiceIT.java:49)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    stigkjstigkj
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    820 more bugmates