org.openqa.selenium.firefox.NotConnectedException Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms- Selenium Issue resolution on Firefox

Hi every one , I have started working on selenium some years back and there are multiple issues which I have seen from the beginning of my career. Today I will share a resolution of an issue which is most common and if you go through the error log you will not get any clue what the issue is all about .

ERROR LOG

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
e":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\user\\AppData\\Local\\
Temp\\anonymous6135387285613883684webdrive
r-profile\\extensions\\fxdriver@googlecode.com","mtime":1401263303796,
"rdfTime":1401263302299}}}]
LOG addons.xpi-utils: Opening XPI database C:\Users\user\AppData\Local\Temp\
anonymous6135387285613883684webdriver-profile\extensions.json
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd}

 installed in app-global
*** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} 

visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on otis@digitalpersona.com installed in winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:otis@digitalpersona.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on ext@VideoPlayerV3beta652.net installed in winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:ext@VideoPlayerV3beta652.net visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on ext@MediaPlayerV1alpha512.net installed in winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:ext@MediaPlayerV1alpha512.net visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {55A8EC97-6AF6-442c-877F-11C51DBD162D} installed in winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:{55A8EC97-6AF6-442c-877F-11C51DBD162D} visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG DeferredSave/extensions.json: Starting timer
*** LOG DeferredSave/extensions.json: Starting write
*** LOG DeferredSave/extensions.json: Write succeeded
*** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 16
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
System JS : ERROR resource://gre/modules/BookmarkHTMLUtils.jsm:798 - NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.removeFolderChildren]
System JS : ERROR resource://app/components/nsBrowserGlue.js:1713 - NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIAnnotationService.getItemsWithAnnotation]
System JS : ERROR resource://gre/modules/BookmarkHTMLUtils.jsm:835 - NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.runInBatchMode]
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID:

Step-wise approach with solution

I have written a test script which actually does a log in to my application and does some basic checks. So what all I did is I have made a Junit test class and made some functions like this:

Set up function:

@Before // A junit annotation which will execute before each test
public void setUp() throws Exception {
FirefoxDriver wd = new FirefoxDriver();
wd.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); // apply implicit wait to driver instance (refer <a title="Manage your Selenium scripts with TimeOuts , implicit and explicit waits in." href="https://khyatisehgal.wordpress.com/2013/10/09/how-to-handle-timeouts-implicit-and-explicit-waits-in-selenium/" target="_blank">this</a>)
}

Tear down function:

@After // A junit annotation which will execute after each test
public void tearDown() { //create a method namely teardown
FirefoxDriver wd.quit(); // quit is a webdriver method.
}

And some test:

@Test // Annotation which junit provides
public void TestLogIn
() {
wd.get("http://ABC.login"); // Get the url given in " "
wd.findElement(By.name("j_username")).click();// Click on username field
wd.findElement(By.name("j_username")).sendKeys("abc"); // Type user name in the field
wd.findElement(By.name("j_password")).click(); // Click on password field
wd.findElement(By.name("j_password")).sendKeys("123"); // Type password in the field
wd.findElement(By.name("submit")).click(); // Click on submit button.

}

When I was trying to run this test script then I was facing issue which  I mentioned earlier.

 Environment set up

Operating system : windows 7

Selenium Jar : selenium-server-standalone-2.28.jar

Programming language : Java

Unit test framework : Junit

Browser  : Firefox 29

Solution:

1. I tried un-installing FireFox as the problem was only of FireFox.

That dint help me at all .

2. I tried un-installing all plug-ins from Firefox .

as in the exception there was a line stating : LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible

That dint work as well.

3. Then I cleared temp of my local to clear app data.

<strong>"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\user\\AppData\\Local\\Temp\\anonymous6135387285613883684webdriver-</strong>

This was also a bad attempt.

 The Real Solution:

What you need to do is to update you selenium stand-alone jar to latest . I took selenium-server-standalone-2.41.jar

What all steps you need to do for this “.

  • Download selenium jar .

Set Up Development environment.

1. Go to Eclipse (IDE )

2. Right click on the project

3. Select last option > properties.

4.Go to Java Build Path

5. Add latest selenium jar .

<a href="https://khyatisehgal.files.wordpress.com/2014/05/standalonejar.png"><img class="aligncenter size-full wp-image-216" src="https://khyatisehgal.files.wordpress.com/2014/05/standalonejar.png" alt="StandAloneJar" width="676" height="526" /></a>

6. Click Ok and rebuild your project.

Now execute the scripts which you were trying before. It will work.

This solution worked for me .

Please let me know , if you have any input or queries .

Advertisements

29 thoughts on “org.openqa.selenium.firefox.NotConnectedException Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms- Selenium Issue resolution on Firefox

    • I’m getting this error, please help me!
      O.S Windows 10
      Java 1.8
      Eclipse
      Selenium 2.47.1.jar

      org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
      5-3208198ce6fd}”,”syncGUID”:”nkltpS4RrGb1″,”location”:”app-global”,”version”:”49.0.2″,”type”:”theme”,”internalName”:”classic/1.0″,”updateURL”:null,”updateKey”:null,”optionsURL”:null,”optionsType”:null,”aboutURL”:null,”icons”:{“32″:”icon.png”,”48″:”icon.png”},”iconURL”:null,”icon64URL”:null,”defaultLocale”:{“name”:”Default”,”description”:”The default theme.”,”creator”:”Mozilla”,”homepageURL”:null,”contributors”:[“Mozilla Contributors”]},”visible”:true,”active”:true,”userDisabled”:false,”appDisabled”:false,”descriptor”:”C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi”,”installDate”:1476904582000,”updateDate”:1476904582000,”applyBackgroundUpdates”:1,”skinnable”:true,”size”:21905,”sourceURI”:null,”releaseNotesURI”:null,”softDisabled”:false,”foreignInstall”:false,”hasBinaryComponents”:false,”strictCompatibility”:true,”locales”:[],”targetApplications”:[{“id”:”{ec8030f7-c20a-464f-9b0e-13a3a9e97384}”,”minVersion”:”49.0.2″,”maxVersion”:”49.0.2″}],”targetPlatforms”:[],”seen”:true}
      1478534844012 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
      1478534844013 DeferredSave.extensions.json DEBUG Save changes
      1478534844013 addons.xpi DEBUG Updating database with changes to installed add-ons
      1478534844013 addons.xpi-utils DEBUG Updating add-on states
      1478534844015 addons.xpi-utils DEBUG Writing add-ons list
      1478534844018 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
      1478534844019 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.3
      1478534844019 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
      1478534844020 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.4
      1478534844020 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
      1478534844021 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.0
      1478534844022 addons.manager DEBUG Registering shutdown blocker for XPIProvider
      1478534844023 addons.manager DEBUG Provider finished startup: XPIProvider
      1478534844023 addons.manager DEBUG Starting provider: LightweightThemeManager
      1478534844023 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
      1478534844023 addons.manager DEBUG Provider finished startup: LightweightThemeManager
      1478534844023 addons.manager DEBUG Starting provider: GMPProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for GMPProvider
      1478534844031 addons.manager DEBUG Provider finished startup: GMPProvider
      1478534844031 addons.manager DEBUG Starting provider: PluginProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for PluginProvider
      1478534844031 addons.manager DEBUG Provider finished startup: PluginProvider
      1478534844031 addons.manager DEBUG Completed startup sequence
      1478534845465 addons.manager DEBUG Starting provider:
      1478534845465 addons.manager DEBUG Registering shutdown blocker for
      1478534845465 addons.manager DEBUG Provider finished startup:
      1478534845466 DeferredSave.extensions.json DEBUG Starting write
      1478534845622 addons.repository DEBUG No addons.json found.
      1478534845623 DeferredSave.addons.json DEBUG Save changes
      1478534845627 DeferredSave.addons.json DEBUG Starting timer
      1478534845648 addons.manager DEBUG Starting provider: PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
      1478534845653 DeferredSave.extensions.json DEBUG Write succeeded
      1478534845654 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
      1478534845679 DeferredSave.addons.json DEBUG Starting write
      1478534845699 DeferredSave.addons.json DEBUG Write succeeded

      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
      at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
      at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:116)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:223)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:212)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
      at Sele.Sele.main(Sele.java:10)
      Exception in thread “main” org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
      5-3208198ce6fd}”,”syncGUID”:”nkltpS4RrGb1″,”location”:”app-global”,”version”:”49.0.2″,”type”:”theme”,”internalName”:”classic/1.0″,”updateURL”:null,”updateKey”:null,”optionsURL”:null,”optionsType”:null,”aboutURL”:null,”icons”:{“32″:”icon.png”,”48″:”icon.png”},”iconURL”:null,”icon64URL”:null,”defaultLocale”:{“name”:”Default”,”description”:”The default theme.”,”creator”:”Mozilla”,”homepageURL”:null,”contributors”:[“Mozilla Contributors”]},”visible”:true,”active”:true,”userDisabled”:false,”appDisabled”:false,”descriptor”:”C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi”,”installDate”:1476904582000,”updateDate”:1476904582000,”applyBackgroundUpdates”:1,”skinnable”:true,”size”:21905,”sourceURI”:null,”releaseNotesURI”:null,”softDisabled”:false,”foreignInstall”:false,”hasBinaryComponents”:false,”strictCompatibility”:true,”locales”:[],”targetApplications”:[{“id”:”{ec8030f7-c20a-464f-9b0e-13a3a9e97384}”,”minVersion”:”49.0.2″,”maxVersion”:”49.0.2″}],”targetPlatforms”:[],”seen”:true}
      1478534844012 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
      1478534844013 DeferredSave.extensions.json DEBUG Save changes
      1478534844013 addons.xpi DEBUG Updating database with changes to installed add-ons
      1478534844013 addons.xpi-utils DEBUG Updating add-on states
      1478534844015 addons.xpi-utils DEBUG Writing add-ons list
      1478534844018 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
      1478534844019 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.3
      1478534844019 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
      1478534844020 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.4
      1478534844020 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
      1478534844021 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.0
      1478534844022 addons.manager DEBUG Registering shutdown blocker for XPIProvider
      1478534844023 addons.manager DEBUG Provider finished startup: XPIProvider
      1478534844023 addons.manager DEBUG Starting provider: LightweightThemeManager
      1478534844023 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
      1478534844023 addons.manager DEBUG Provider finished startup: LightweightThemeManager
      1478534844023 addons.manager DEBUG Starting provider: GMPProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for GMPProvider
      1478534844031 addons.manager DEBUG Provider finished startup: GMPProvider
      1478534844031 addons.manager DEBUG Starting provider: PluginProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for PluginProvider
      1478534844031 addons.manager DEBUG Provider finished startup: PluginProvider
      1478534844031 addons.manager DEBUG Completed startup sequence
      1478534845465 addons.manager DEBUG Starting provider:
      1478534845465 addons.manager DEBUG Registering shutdown blocker for
      1478534845465 addons.manager DEBUG Provider finished startup:
      1478534845466 DeferredSave.extensions.json DEBUG Starting write
      1478534845622 addons.repository DEBUG No addons.json found.
      1478534845623 DeferredSave.addons.json DEBUG Save changes
      1478534845627 DeferredSave.addons.json DEBUG Starting timer
      1478534845648 addons.manager DEBUG Starting provider: PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
      1478534845653 DeferredSave.extensions.json DEBUG Write succeeded
      1478534845654 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
      1478534845679 DeferredSave.addons.json DEBUG Starting write
      1478534845699 DeferredSave.addons.json DEBUG Write succeeded

      Build info: version: ‘2.47.1’, revision: ‘411b314’, time: ‘2015-07-30 02:56:46’
      System info: host: ‘LAPTOP-T7GNLQFI’, ip: ‘192.168.13.126’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_112’
      Driver info: driver.version: FirefoxDriver
      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
      at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
      at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:116)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:223)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:212)
      at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
      at Sele.Sele.main(Sele.java:10)
      Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
      5-3208198ce6fd}”,”syncGUID”:”nkltpS4RrGb1″,”location”:”app-global”,”version”:”49.0.2″,”type”:”theme”,”internalName”:”classic/1.0″,”updateURL”:null,”updateKey”:null,”optionsURL”:null,”optionsType”:null,”aboutURL”:null,”icons”:{“32″:”icon.png”,”48″:”icon.png”},”iconURL”:null,”icon64URL”:null,”defaultLocale”:{“name”:”Default”,”description”:”The default theme.”,”creator”:”Mozilla”,”homepageURL”:null,”contributors”:[“Mozilla Contributors”]},”visible”:true,”active”:true,”userDisabled”:false,”appDisabled”:false,”descriptor”:”C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi”,”installDate”:1476904582000,”updateDate”:1476904582000,”applyBackgroundUpdates”:1,”skinnable”:true,”size”:21905,”sourceURI”:null,”releaseNotesURI”:null,”softDisabled”:false,”foreignInstall”:false,”hasBinaryComponents”:false,”strictCompatibility”:true,”locales”:[],”targetApplications”:[{“id”:”{ec8030f7-c20a-464f-9b0e-13a3a9e97384}”,”minVersion”:”49.0.2″,”maxVersion”:”49.0.2″}],”targetPlatforms”:[],”seen”:true}
      1478534844012 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
      1478534844013 DeferredSave.extensions.json DEBUG Save changes
      1478534844013 addons.xpi DEBUG Updating database with changes to installed add-ons
      1478534844013 addons.xpi-utils DEBUG Updating add-on states
      1478534844015 addons.xpi-utils DEBUG Writing add-ons list
      1478534844018 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
      1478534844019 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.3
      1478534844019 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
      1478534844020 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.4
      1478534844020 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
      1478534844021 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.0
      1478534844022 addons.manager DEBUG Registering shutdown blocker for XPIProvider
      1478534844023 addons.manager DEBUG Provider finished startup: XPIProvider
      1478534844023 addons.manager DEBUG Starting provider: LightweightThemeManager
      1478534844023 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
      1478534844023 addons.manager DEBUG Provider finished startup: LightweightThemeManager
      1478534844023 addons.manager DEBUG Starting provider: GMPProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for GMPProvider
      1478534844031 addons.manager DEBUG Provider finished startup: GMPProvider
      1478534844031 addons.manager DEBUG Starting provider: PluginProvider
      1478534844031 addons.manager DEBUG Registering shutdown blocker for PluginProvider
      1478534844031 addons.manager DEBUG Provider finished startup: PluginProvider
      1478534844031 addons.manager DEBUG Completed startup sequence
      1478534845465 addons.manager DEBUG Starting provider:
      1478534845465 addons.manager DEBUG Registering shutdown blocker for
      1478534845465 addons.manager DEBUG Provider finished startup:
      1478534845466 DeferredSave.extensions.json DEBUG Starting write
      1478534845622 addons.repository DEBUG No addons.json found.
      1478534845623 DeferredSave.addons.json DEBUG Save changes
      1478534845627 DeferredSave.addons.json DEBUG Starting timer
      1478534845648 addons.manager DEBUG Starting provider: PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
      1478534845649 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
      1478534845653 DeferredSave.extensions.json DEBUG Write succeeded
      1478534845654 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
      1478534845679 DeferredSave.addons.json DEBUG Starting write
      1478534845699 DeferredSave.addons.json DEBUG Write succeeded

      at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
      … 7 more

      Like

  1. Hi , im using jenkins to run the script that is when im getting the same error , tries out your solution but still not working. Plz help

    Like

  2. [testng] org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    [testng]
    [testng] (process:2731): GLib-CRITICAL **: g_slice_set_config: assertion ‘sys_page_size == 0’ failed
    [testng] Error: no display specified
    [testng]
    [testng] (process:2750): GLib-CRITICAL **: g_slice_set_config: assertion ‘sys_page_size == 0’ failed
    [testng] Error: no display specified
    [testng]
    [testng] at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
    [testng] at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
    [testng] at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
    [testng] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:193)
    [testng] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)
    [testng] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)
    [testng] at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:99)
    [testng] at com.Dhruv.genericLib.Driver.(Driver.java:26)
    [testng] at com.Dhruv.businessLib.LoginBusinessComponent.login(LoginBusinessComponent.java:34)
    [testng] at com.Dhruv.vechileTracking.LoginTest.login(LoginTest.java:16)
    [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [testng] at java.lang.reflect.Method.invoke(Method.java:606)
    [testng] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
    [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
    [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
    [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    [testng] at org.testng.TestRunner.privateRun(TestRunner.java:767)
    [testng] at org.testng.TestRunner.run(TestRunner.java:617)
    [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    [testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    [testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    [testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
    [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
    [testng] at org.testng.TestNG.run(TestNG.java:1057)
    [testng] at org.testng.TestNG.privateMain(TestNG.java:1364)
    [testng] at org.testng.TestNG.main(TestNG.java:1333)
    [testng]

    Hi , im using jenkins to run the script that is when im getting the same error , tried out your solution but still not working. Plz help
    I am usins selenium 2.42.2 and firefox V.31

    Plz help

    Like

    • Hi Sharon,

      The project in which I have prepared while writing this blog has a very simple properties and configurations,Also I wasnot using Jenkins for running my test scripts. Coming to your problem, you have used TestNG as the unit-testing tool, also Jenkins for Continuous integration.
      The current latest selenium jar is ‘2.42.2’, and you can try adding this latest jar in your java build path. Also it would help me in debugging if you give me some more specification of your project like :
      1. Operating system

      2. Selenium Jar

      3. Programming language

      4. Unit test framework

      5. Browser version and name

      Like

    • Hello Shakun,Sathya,
      Can you try the latest Selenium jar 2.43, there is a bug which is fixed in the latest selenium-jar with Firefox. As this is working for me with the latest selenium jar. And let me know the update.

      Like

  3. I am creating runnable jar file for my project. It runs on jenkins. I am using selenium 2.43 + F31. But some time it fails to open the browser. It gives below errors. Here i am posting day 1 + day 2error. I would like to add one point that error start coming when i upgrade to FF 31 and selenium 2.43. Please help me

    First Day Error
    ============
    Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:114)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:193)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:186)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:182)
    at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:95)
    at com.vimo.test.Keywords_PHIX_Release.openBrowser(Keywords_PHIX_Release.java:638)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.vimo.test.DriverScript.executeKeywords(DriverScript.java:540)
    at com.vimo.test.DriverScript.start(DriverScript.java:381)
    at com.vimo.test.DriverScript.callExecutor(DriverScript.java:253)
    at com.vimo.test.Executor.main(Executor.java:64)
    Caused by: org.openqa.selenium.WebDriverException: java.lang.InterruptedException: Process timed out after waiting for 45000 ms.

    ================================================================
    Second day error
    rg.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7056 after 45000 ms. Firefox console output:
    40593 addons.xpi DEBUG Skipping unavailable install location app-system-share
    1411780640595 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Windows\TEMP\anonymous843497551812454328webdriver-profile\extensions\webdriver-staging
    1411780640675 addons.xpi DEBUG checkForChanges
    1411780641083 addons.xpi DEBUG Directory state JSON differs: cache [] state [{“name”:”app-global”,”addons”:{“{972ce4c6-7e08-4474-a285-3208198ce6fd}”:{“descriptor”:”C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}”,”mtime”:1411122400469,”rdfTime”:1405567032000}}},{“name”:”app-profile”,”addons”:{“fxdriver@googlecode.com”:{“descriptor”:”C:\\Windows\\TEMP\\anonymous843497551812454328webdriver-profile\\extensions\\fxdriver@googlecode.com”,”mtime”:1411780634317,”rdfTime”:1411780633446}}}]
    1411780641120 addons.xpi-utils DEBUG Opening XPI database C:\Windows\TEMP\anonymous843497551812454328webdriver-profile\extensions.json
    1411780641121 addons.xpi DEBUG New add-on fxdriver@googlecode.com installed in app-profile
    *** Blocklist::_loadBlocklistFromFile: blocklist is disabled
    1411780642376 addons.xpi-utils DEBUG Make addon app-profile:fxdriver@googlecode.com visible
    1411780642378 DeferredSave.extensions.json DEBUG Save changes
    1411780642378 DeferredSave.extensions.json DEBUG Save changes
    1411780642379 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
    1411780642397 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
    1411780642397 DeferredSave.extensions.json DEBUG Save changes
    1411780642397 DeferredSave.extensions.json DEBUG Save changes
    1411780642420 addons.xpi DEBUG Updating database with changes to installed add-ons
    1411780642420 addons.xpi-utils DEBUG Updating add-on states
    1411780642437 addons.xpi-utils DEBUG Writing add-ons list
    1411780647813 DeferredSave.extensions.json DEBUG Starting timer
    1411780648200 DeferredSave.extensions.json DEBUG Starting write
    1411780648563 addons.manager DEBUG shutdown
    1411780648563 addons.xpi DEBUG shutdown
    1411780648563 addons.xpi-utils DEBUG shutdown

    Like

  4. Hi,

    1. Operating system : Windows 7

    2. Selenium-server-standlone.Jar : 2.43.1

    3. Programming language : Java

    4. Unit test framework : Codoid framework

    5. Browser version and name Chrome 39

    Previously I was running the automation Scripts on Selenium-server-standlone.Jar 2.39 version , but that does not support the latest Firefox versions (like 32 and 33) so I update the Selenium-server-standlone.Jar to 2.43.1 . But now I am getting this error on running the script

    Caused by: java.lang.NoSuchFieldError: INSTANCE
    [java] at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
    [java] at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
    [java] at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
    [java] at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
    [java] at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
    [java] at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
    [java] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:493)
    [java] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:149)
    [java] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:138)
    [java] at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:114)
    [java] at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:68)
    [java] at org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:55)
    [java] at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:98)
    [java] at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:81)
    [java] at org.openqa.selenium.remote.service.DriverCommandExecutor.(DriverCommandExecutor.java:46)
    [java] at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:171)
    [java] at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:160)
    [java] at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:117)
    [java] at Toolbox.Browser.getChromeDriver(Browser.java:313)
    [java] at Toolbox.Browser.getWebDriver(Browser.java:150)
    [java] at Toolbox.Browser.launchUrl(Browser.java:69)
    [java] at Wrapper.GenericKeyword.OPENURL(Unknown Source)
    [java] … 30 more
    [java] Fail
    [java] Unable to navigate URL : Window is not available

    Like

  5. Hi Khyati,

    Recently i was the same issue which you have mentioned , i already followed the same steps written by you. It is not working for me.

    After i did so many things and followed all optimal steps which were possible finally today i saw your this article.
    Please if you can help me then that will be great

    Latest
    Selenium standalone jar : 2.46.0
    FF : Tried with 36.0 and 39.0 (on both same issue is observed)

    Like

  6. Hi Khyati,
    I am also also getting org.openqa.selenium.firefox.NotConnectedException error. My environment details as below. My tests are running good from local machine (mvn clean test) and when I kick them form Bamboo server I get below error. Let me know if you find any solution to execute FF in CI.
    FF – 39.0.3
    Java – 1.7.0.65
    Selenium WebDriver – 2.47.1
    Selenium Grid Standalone – 2.47.1

    build 14-Aug-2015 06:35:55 INFO ECUITestBase – ********************************************
    build 14-Aug-2015 06:35:55 INFO ECUITestBase – START TEST : BasicManageObjectIUDTest IUDTest
    error 14-Aug-2015 06:36:41 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    error 14-Aug-2015 06:36:41
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:116)
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:221)
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
    error 14-Aug-2015 06:36:41 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:133)
    error 14-Aug-2015 06:36:41 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    error 14-Aug-2015 06:36:41 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    error 14-Aug-2015 06:36:41 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    error 14-Aug-2015 06:36:41 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:133)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:143)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:45)
    error 14-Aug-2015 06:36:41 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
    error 14-Aug-2015 06:36:41 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    error 14-Aug-2015 06:36:41 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    error 14-Aug-2015 06:36:41 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    error 14-Aug-2015 06:36:41 at java.lang.Thread.run(Thread.java:744)
    build 14-Aug-2015 06:36:42 Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 47.867 sec <<< FAILURE! – in com.ec.uitest.tests.frmw.co.iud.BasicManageObjectIUDTest
    build 14-Aug-2015 06:36:42 IUDTest(com.ec.uitest.tests.frmw.co.iud.BasicManageObjectIUDTest) Time elapsed: 47.739 sec <<< ERROR!
    build 14-Aug-2015 06:36:42 java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
    build 14-Aug-2015 06:36:42
    build 14-Aug-2015 06:36:42 Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
    build 14-Aug-2015 06:36:42 System info: host: 'WS003039', ip: '10.34.20.33', os.name: 'Windows Server 2012', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0_45'
    build 14-Aug-2015 06:36:42 Driver info: driver.version: FirefoxDriver
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:133)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:143)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:45)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    build 14-Aug-2015 06:36:42 at java.lang.Thread.run(Thread.java:744)
    build 14-Aug-2015 06:36:42 Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
    build 14-Aug-2015 06:36:42
    build 14-Aug-2015 06:36:42 Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
    build 14-Aug-2015 06:36:42 System info: host: 'WS003039', ip: '10.34.20.33', os.name: 'Windows Server 2012', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0_45'
    build 14-Aug-2015 06:36:42 Driver info: driver.version: FirefoxDriver
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:116)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:221)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:133)
    build 14-Aug-2015 06:36:42 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    build 14-Aug-2015 06:36:42 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    build 14-Aug-2015 06:36:42 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    build 14-Aug-2015 06:36:42 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:133)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:143)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:45)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    build 14-Aug-2015 06:36:42 at java.lang.Thread.run(Thread.java:744)
    build 14-Aug-2015 06:36:42 Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    build 14-Aug-2015 06:36:42
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:116)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:221)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
    build 14-Aug-2015 06:36:42 at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:133)
    build 14-Aug-2015 06:36:42 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    build 14-Aug-2015 06:36:42 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    build 14-Aug-2015 06:36:42 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    build 14-Aug-2015 06:36:42 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:133)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:143)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:45)
    build 14-Aug-2015 06:36:42 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    build 14-Aug-2015 06:36:42 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    build 14-Aug-2015 06:36:42 at java.lang.Thread.run(Thread.java:744)

    Like

  7. HI,
    I am facing the similar issue. My issue is :

    I am running my tests from HUDSON. I have configured a new job but while running the build, i am getting below error. Can someone help ASAP.

    OS: CentOS 7
    Lamguage: Java
    Selenium: 2.45.0
    FF36

    Like

  8. Khyati Sehgal Ji, I am facing this same problem. Unable to run my test scripts through jenkins. It is working from Eclipse but not from Jenkins. Please suggest.

    1. Operating system: Mac

    2. Selenium Jar: 2.53

    3. Programming language: JAVA

    4. Unit test framework: TestNG

    5. Browser version and name: Firefox: 43.0.4

    Like

  9. 1. Operating system: Mac

    2. Selenium Jar: 2.53

    3. Programming language: JAVA

    4. Unit test framework: TestNG

    5. Browser version and name: Firefox 43.0.4

    Khyati Sehgal Ji, I am facing this same problem. I have tried same selenium script on Eclipse and its working correctly. But when running my script from Jenkins, it shows this error

    org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7057 after 45000 ms. Firefox console output:
    8198ce6fd} in app-global
    1464349220745 addons.xpi DEBUG getInstallState changed: false, state: {“app-profile”:{“fxdriver@googlecode.com”:{“d”:”/var/folders/8g/rljydrn14_969chz9w8dnn0800007q/T/anonymous4475772700371109007webdriver-profile/extensions/fxdriver@googlecode.com”,”e”:false,”v”:”2.20.0″,”st”:1464349210000,”mt”:1464349210000}},”app-system-defaults”:{“e10srollout@mozilla.org”:{“d”:”/Applications/Firefox.app/Contents/Resources/browser/features/e10srollout@mozilla.org.xpi”,”e”:true,”v”:”1.0″,”st”:1464345557000},”firefox@getpocket.com”:{“d”:”/Applications/Firefox.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi”,”e”:true,”v”:”1.0″,”st”:1464345557000},”loop@mozilla.org”:

    .
    .
    .

    Like

  10. Hi Khyati, in Jenkins when i give the git repository URL it displays an error: Failed to connect to repository : Remote host closed connection during handshake

    Previously it was working fine, from past 1 month its not working.

    If you know anything about this pls share.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s