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.

  • Re: [ManifoldCF 0.5] The web crawler remains running after a network connection refused
    via by 小林 茂樹(情報システム本部 / サービス企画部),
  • Re: [ManifoldCF 0.5] The web crawler remains running after a network connection refused
    via by 小林 茂樹(情報システム本部 / サービス企画部),
  • Alfresco Labs 3 / Share login | Alfresco Forums
    via by Unknown author,
  • go-agent not configuring
    via by rjoh...@iwsinc.com,
  • Re: retries to connect to agent
    via by Shanti Subramanyam,
  • If Crucible can't be reached, a ConnectException is thrown from the plugin, which isn't handled and so triggers IDEA's uncaught exception handler Error getting Crucible reviews for cru-poland server: Connection refused com.atlassian.theplugin.crucible.api.CrucibleLoginException: Connection refused at com.atlassian.theplugin.crucible.api.rest.CrucibleSessionImpl.login(CrucibleSessionImpl.java:102) at com.atlassian.theplugin.crucible.CrucibleServerFacadeImpl.getActiveReviewsForUser(CrucibleServerFacadeImpl.java:122) at com.atlassian.theplugin.idea.crucible.CrucibleStatusChecker.doRun(CrucibleStatusChecker.java:65) at com.atlassian.theplugin.idea.crucible.CrucibleStatusChecker.access$100(CrucibleStatusChecker.java:34) at com.atlassian.theplugin.idea.crucible.CrucibleStatusChecker$2.run(CrucibleStatusChecker.java:104) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: java.net.ConnectException: Connection refused 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:432) at java.net.Socket.connect(Socket.java:520) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) 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 com.atlassian.theplugin.crucible.api.rest.CrucibleSessionImpl.retrieveGetResponse(CrucibleSessionImpl.java:295) at com.atlassian.theplugin.crucible.api.rest.CrucibleSessionImpl.login(CrucibleSessionImpl.java:80) ... 6 more
    via by Brendan Humphreys,
  • When trying to configure a Fisheye or Bamboo server in the IDE plugin and try to Test the Connection I get a stack trace error saying that Fisheye or Bamboo refused the connection. The username and password is correct for the connection and the url to the server instance is also correct: *For Fisheye* {code} com.atlassian.theplugin.commons.remoteapi.RemoteApiLoginException: Connection refused at com.atlassian.theplugin.commons.fisheye.api.rest.FishEyeRestSession.login(FishEyeRestSession.java:147) at com.atlassian.theplugin.commons.fisheye.FishEyeServerFacadeImpl.testServerConnection(FishEyeServerFacadeImpl.java:28) at com.atlassian.theplugin.idea.config.serverconfig.ProductConnector.connect(ProductConnector.java:31) at com.atlassian.theplugin.ConnectionWrapper.run(ConnectionWrapper.java:63) Caused by: java.net.ConnectException: Connection refused 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:432) at java.net.Socket.connect(Socket.java:520) at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) 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 com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.doConditionalGet(AbstractHttpSession.java:266) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrieveGetResponse(AbstractHttpSession.java:165) at com.atlassian.theplugin.commons.fisheye.api.rest.FishEyeRestSession.login(FishEyeRestSession.java:125) ... 3 more {code} *For Bamboo* {code} om.atlassian.theplugin.commons.remoteapi.RemoteApiLoginException: Connection refused at com.atlassian.theplugin.commons.bamboo.api.BambooSessionImpl.login(BambooSessionImpl.java:187) at com.atlassian.theplugin.commons.bamboo.api.AutoRenewBambooSession.login(AutoRenewBambooSession.java:172) at com.atlassian.theplugin.commons.bamboo.BambooServerFacadeImpl.testServerConnection(BambooServerFacadeImpl.java:107) at com.atlassian.theplugin.idea.config.serverconfig.ProductConnector.connect(ProductConnector.java:31) at com.atlassian.theplugin.ConnectionWrapper.run(ConnectionWrapper.java:63) Caused by: java.net.ConnectException: Connection refused 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:432) at java.net.Socket.connect(Socket.java:520) at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125) 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 com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.doConditionalGet(AbstractHttpSession.java:266) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrieveGetResponse(AbstractHttpSession.java:165) at com.atlassian.theplugin.commons.bamboo.api.BambooSessionImpl.login(BambooSessionImpl.java:166) ... 4 more {code}
    via by Dusty Pearce,
    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(UnknownSource) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(UnknownSource) at org.apache.commons.httpclient.HttpConnection.open(Unknown Source) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(UnknownSource) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(UnknownSource) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(UnknownSource) at org.apache.commons.httpclient.HttpClient.executeMethod(UnknownSource) at org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottledFetcher$ThrottledConnection$ExecuteMethodThread.run(ThrottledFetcher.java:1244)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rocdayrocday
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    musketyrmusketyr
    1 times, last one,
    279 more bugmates