Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by LittlePanda

    To restart the Selenium Webdriver mock browser in a testcase, first use driver.close() and then reinstantiate the driver.

  2. ,
    Expert tip

    Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Solutions on the web

via Oracle Community by Sashank Pappu, 2 years ago
org.apache.http.conn.HttpHostConnectException: Connection to http://<FullComputerName>:7004 refused
via Oracle Community by Thabo Mpele, 2 years ago
org.apache.http.conn.HttpHostConnectException: Connection to http://tmpele:7001 refused
via Oracle Community by 1004449, 2 years ago
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:7001 refused
via Oracle Community by 2697344, 1 year ago
org.apache.http.conn.HttpHostConnectException: Connection to http://ussbcs02:7003 refused
via Oracle Community by 2807462, 1 year ago
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:7005 refused
via oracle.com by Unknown author, 2 years ago
org.apache.http.conn.HttpHostConnectException: Connection to http://tmpele:7001 refused
com.fatwire.cs.core.http.HttpAccessException: org.apache.http.conn.HttpHostConnectException: Connection to http://<FullComputerName>:7004 refused at com.fatwire.cs.core.http.HttpAccess.execute(HttpAccess.java:367) at COM.FutureTense.Util.ftUtil._readUsingHttpAccess(ftUtil.java:793) at COM.FutureTense.Util.ftUtil.readByteURL(ftUtil.java:733) at COM.FutureTense.Util.ftUtil.readURL(ftUtil.java:698) at COM.FutureTense.Platform.SystemEvents.RequestEventItem.execute(RequestEventItem.java:58) at COM.FutureTense.Platform.SystemEvents.AbstractEventItem.run(AbstractEventItem.java:170) at COM.FutureTense.Platform.SystemEvents.FileSystemBasedClusteredEventExecutor$LockingCallable.call(FileSystemBasedClusteredEventExecutor.java:232) at COM.FutureTense.Platform.SystemEvents.FileSystemBasedClusteredEventExecutor$LockingCallable.call(FileSystemBasedClusteredEventExecutor.java:198) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://<FullComputerName>:7004 refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at com.fatwire.cs.core.http.HttpAccess.execute(HttpAccess.java:552) at com.fatwire.cs.core.http.HttpAccess.execute(HttpAccess.java:343) ... 12 moreCaused by: java.net.ConnectException: Connection refused: connect 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 org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) ... 19 more