org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:16391 [localhost/127.0.0.2] failed: Connection refused Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'malintha-laptop', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-86-generic', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver

Stack Overflow | Malintha | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    http.con.httphostconnection exception selenium3 and firefox 49 using gecock driver

    Stack Overflow | 6 months ago | surya135
    org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:42396 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect Build info: version: '3.0.0', revision: '350cf60', time: '2016-10-13 10:48:16 -0700' System info: host: 'sdards', ip: '192.168.1.5', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101' Driver info: driver.version: FirefoxDriver
  2. 0

    Selenium webdriver 3.0.1 and selenium java 3.0.1

    Stack Overflow | 3 months ago | Ajveer Singh
    org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:30514 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'DESKTOP-SECO39S', ip: '192.168.1.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111' Driver info: driver.version: FirefoxDriver
  3. 0

    Using Selenium 3.0.0 on Jenkins throws SessionNotCreatedException: Unable to create new remote session

    Stack Overflow | 6 months ago | Alia
    org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@1fdfafd2, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@1fdfafd2, version=, platform=ANY}], required capabilities = Capabilities [{}] Build info: version: '3.0.0', revision: '350cf60', time: '2016-10-13 10:48:57 -0700' System info: host: 'host', ip: 'ip', os.name: 'Linux', os.arch: 'amd64', os.version: '3.11.0-20-generic', java.version: '1.8.0_60' Driver info: driver.version: FirefoxDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 229#249152915

    GitHub | 7 months ago | kiran3090
    org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: 'unknown', revision: 'c7b525d', time: '2016-09-01 14:57:44 -0700' System info: host: 'kirankumar_b', ip: '192.168.2.171', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_60' Driver info: driver.version: FirefoxDriver
  6. 0

    Selenium Chromedriver launches Chrome 57, but doesn't open website

    Google Groups | 3 weeks ago | Unknown author
    org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}] Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800' System info: host: 'DCW7-HWBRR52', ip: '10.13.8.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_112' Driver info: driver.version: FirefoxDriver
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

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    2. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
    3. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    4. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    5. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    6. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    7. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    8. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    9. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    11. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    11 frames
  4. Selenium
    RemoteWebDriver.<init>
    1. org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:142)
    2. org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:88)
    3. org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:108)
    4. org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:64)
    5. org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    6. org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    7. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    8. org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    9. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
    9 frames
  5. selenium-firefox-driver
    FirefoxDriver.<init>
    1. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:259)
    2. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
    3. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
    4. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:135)
    4 frames
  6. com.galenframework.browser
    SeleniumBrowserFactory.openBrowser
    1. com.galenframework.browser.SeleniumBrowserFactory.getDriver(SeleniumBrowserFactory.java:95)
    2. com.galenframework.browser.SeleniumBrowserFactory.createLocalBrowser(SeleniumBrowserFactory.java:89)
    3. com.galenframework.browser.SeleniumBrowserFactory.openBrowser(SeleniumBrowserFactory.java:65)
    3 frames
  7. com.galenframework.runner
    GalenBasicTestRunner.runTest
    1. com.galenframework.runner.GalenBasicTestRunner.runTest(GalenBasicTestRunner.java:73)
    1 frame
  8. com.galenframework.tests
    GalenBasicTest.execute
    1. com.galenframework.tests.GalenBasicTest.execute(GalenBasicTest.java:55)
    1 frame
  9. com.galenframework
    TestRunnable.run
    1. com.galenframework.TestRunnable.runTest(TestRunnable.java:75)
    2. com.galenframework.TestRunnable.run(TestRunnable.java:101)
    2 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames