org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4723 [/127.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: 'LAPTOP-O6MJ7FC6', ip: '192.168.251.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver

Stack Overflow | victoria | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    creating two appium drivers sometimes fails on the second

    Stack Overflow | 10 months ago | Elad Benda
    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: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44' System info: host: 'waze-jenkins.fra.corp.google.com', ip: '172.24.225.8', os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.5-gg1336-ganetixenu', java.version: '1.8.0_65' Driver info: driver.version: MyAndroidDriver
  2. 0

    Unable to get Appium + Android App + Sauce Connect running tests that work locally

    Stack Overflow | 5 months ago | Michael Robinson
    org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{app=sauce-storage:******-sit.apk, platformVersion=4.4, appiumVersion=1.5.3, browserName=, deviceOrientation=portrait, platformName=Android, deviceName=Samsung Galaxy S4 Emulator}], required capabilities = Capabilities [{}] Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700' System info: host: 'L3256.local', ip: '10.7.104.241', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.1', java.version: '1.8.0_101' Driver info: driver.version: AndroidDriver
  3. 0

    Not able to run appium script on real device. getting a bad app error

    Stack Overflow | 1 month ago | Anjani Kumar
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Bad app: C:\Users\admin\workspace\AppiumProject\sdcard\Android\data\com.alensw.PicFolder. App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name. cause: Error: Using local app, but didn't end in .zip, .ipa or .apk) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.3.1', revision: '5234b32', time: '2017-03-10 09:04:52 -0800' System info: host: 'ADMIN-PC', ip: '10.0.0.63', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Appium TestNG error : Attempting bi-dialect session, assuming Postel's Law holds true on the remote end

    Software Quality Assurance & Testing | 3 months ago | victoria
    org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700' System info: host: 'LAPTOP-O6MJ7FC6', ip: '192.168.251.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver
  6. 0
    samebug tip
    start Appium server

  1. rp 1 times, last 5 months ago
  2. vega113 1 times, last 10 months ago
  3. pulse00 37 times, last 22 hours ago
  4. Pilleo 1 times, last 3 weeks ago
  5. raytest 3 times, last 1 month ago
59 more registered users
36 unregistered visitors
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: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    3. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    5. java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    6. java.net.PlainSocketImpl.connect(Unknown Source)
    7. java.net.SocksSocketImpl.connect(Unknown Source)
    8. java.net.Socket.connect(Unknown Source)
    8 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
    HttpCommandExecutor.execute
    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)
    5 frames
  5. java-client
    AppiumCommandExecutor.execute
    1. io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
    1 frame
  6. Selenium
    RemoteWebDriver.execute
    1. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    1 frame
  7. java-client
    AndroidDriver.execute
    1. io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
    2. io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    3. io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
    3 frames
  8. Selenium
    RemoteWebDriver.<init>
    1. org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    2. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
    3. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
    3 frames
  9. java-client
    AndroidDriver.<init>
    1. io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
    2. io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90)
    3. io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:128)
    4. io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:72)
    4 frames
  10. com.example
    FirstAppiumTest.Setup
    1. com.example.FirstAppiumTest.Setup(FirstAppiumTest.java:33)
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  12. TestNG
    RemoteTestNG.main
    1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
    2. org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
    3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
    4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
    5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    7. org.testng.TestRunner.privateRun(TestRunner.java:756)
    8. org.testng.TestRunner.run(TestRunner.java:610)
    9. org.testng.SuiteRunner.runTest(SuiteRunner.java:387)
    10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:382)
    11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
    12. org.testng.SuiteRunner.run(SuiteRunner.java:289)
    13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1293)
    16. org.testng.TestNG.runSuitesLocally(TestNG.java:1218)
    17. org.testng.TestNG.runSuites(TestNG.java:1133)
    18. org.testng.TestNG.run(TestNG.java:1104)
    19. org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
    20. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
    21. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
    21 frames