{"id":6674,"date":"2014-04-21T12:51:16","date_gmt":"2014-04-21T12:51:16","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/21\/org-openqa-selenium-firefox-notconnectedexception-unable-to-connect-to-host-127-0-0-1-on-port-7055-after-45000-ms-collection-of-common-programming-errors-2\/"},"modified":"2014-04-21T12:51:16","modified_gmt":"2014-04-21T12:51:16","slug":"org-openqa-selenium-firefox-notconnectedexception-unable-to-connect-to-host-127-0-0-1-on-port-7055-after-45000-ms-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/21\/org-openqa-selenium-firefox-notconnectedexception-unable-to-connect-to-host-127-0-0-1-on-port-7055-after-45000-ms-collection-of-common-programming-errors-2\/","title":{"rendered":"org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to run a Junit Test case which i exported from Selenium IDE. Im getting above exception.I&#8217;m using Windows XP,Firefox 20.0.1,and using selenium-server-standalone-2.28.0.jar.Upon run, a blank Firefox window is opened. When I close that window i get below exception in console<\/p>\n<pre><code> org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms at\n org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:96)\n at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:142)\n at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:80)\n at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121)\n at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:77)\n at com.dci.dids.selenium.SwamiRoleCreationTestCase.setUp(SwamiRoleCreationTestCase.java:20)\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n at java.lang.reflect.Method.invoke(Method.java:597)\n at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)\n at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)\n at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)\n at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)\n at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)\n at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)\n at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)\n at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)\n at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)\n at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)\n<\/code><\/pre>\n<p>This exception in JUnit Failure trace<\/p>\n<pre><code> org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(\/usr\/bin\/firefox) on port 7055; process output follows: * LOG addons.xpi: startup LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID:\n \/tmp\/anonymous5690381165464188533webdriver-profile\/extensions\/webdriver-staging LOG addons.xpi: checkForChanges * LOG addons.xpi: No changes found\n\n System info: os.name: 'Linux', os.arch: 'i386', os.version: '3.2.0-23-generic-pae', java.version: '1.6.0_38' Driver info: driver.version:\n FirefoxDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:108)\n at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:142)\n at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:80)\n at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121)\n at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:77)\n at com.dci.dids.selenium.SwamiRoleCreationTestCase.setUp(SwamiRoleCreationTestCase.java:20)\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n at java.lang.reflect.Method.invoke(Method.java:597)\n at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)\n at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)\n at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)\n at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)\n at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)\n at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)\n at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)\n at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)\n at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)\n at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:96) ... 25 more\n\n java.lang.NullPointerException at com.dci.dids.selenium.SwamiRoleCreationTestCase.tearDown(SwamiRoleCreationTestCase.java:47)\n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n at java.lang.reflect.Method.invoke(Method.java:597)\n at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)\n at org.junit.internal.runners.BeforeAndAfterRunner.runAfters(BeforeAndAfterRunner.java:65)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:37)\n at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)\n at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)\n at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)\n at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)\n at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)\n at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)\n at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)\n at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)\n at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)\n at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to run a Junit Test case which i exported from Selenium IDE. Im getting above exception.I&#8217;m using Windows XP,Firefox 20.0.1,and using selenium-server-standalone-2.28.0.jar.Upon run, a blank Firefox window is opened. When I close that window i get below exception in console org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6674","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6674"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6674\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}