org.apache.http.conn.HttpHostConnectException

Connection to http://localhost:54129 refused I/TestRunner( 760): System info: os.name: 'Linux', os.arch: 'armv5tejl', os.version: '2.6.29-00261-g0097074-dirty', java.version: '0' I/TestRunner( 760): Driver info: driver.version: AndroidNativeDriver

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web821

  • via Google Groups by rasanga, 6 months ago
    Connection to http://localhost:54129 refused I/TestRunner( 760): System info: os.name: 'Linux', os.arch: 'armv5tejl', os.version: '2.6.29-00261-g0097074-dirty', java.version: '0' I/TestRunner( 760): Driver info: driver.version: AndroidNativeDriver
  • via Google Groups by canjian 杨, 1 year ago
    Connection to http://localhost:54129 refused System info: os.name: 'Linux', os.arch: 'armv5tejl', os.version: '2.6.29-00261-g0097074-dirty', java.version: '0' Driver info: driver.version: AndroidNativeDriver
  • via Google Groups by GK, 1 week ago
    Connection to http://localhost:16636 refused System info: os.name: 'Linux', os.arch: 'arm', os.version: '2.6.35-omap4-mob', java.version: '1.6.0_21' Driver info: driver.version: ChromeDriver
  • Stack trace

    • org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:54129 refused I/TestRunner( 760): System info: os.name: 'Linux', os.arch: 'armv5tejl', os.version: '2.6.29-00261-g0097074-dirty', java.version: '0' I/TestRunner( 760): Driver info: driver.version: AndroidNativeDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:406) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:103) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:86) at com.google.android.testing.nativedriver.client.AndroidNativeDriver.<init>(UnknownSource) at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.build(UnknownSource) at com.rasanga.testColomboBusRoutes.LoginActivityTest.getDriver(LoginActivityTest.java:40) at com.rasanga.testColomboBusRoutes.LoginActivityTest.setUp(LoginActivityTest.java:31) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:520) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:54129 refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:272) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:252) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:389) ... 15 more Caused by: java.net.ConnectException: / 127.0.0.1:54129 - Connection refused at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:254) at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533) at java.net.Socket.connect(Socket.java:1055) at org.openqa.selenium.remote.ReusingSocketSocketFactory.connectSocket(ReusingSocketSocketFactory.java:122) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:143) ... 22 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 3 weeks ago