Error: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms with selenium 2.53v firefox 40v and JDK8

354 views
Skip to first unread message

Ravi

unread,
Dec 3, 2016, 7:28:11 AM12/3/16
to webdriver
Hi Every one,

Selenium : 2.53.0v
Firefox :40.0v
JDK: 8

my code: 
public class Gmail {

public static void main(String[] args) throws InterruptedException {
WebDriver driver= new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://gmail.com");

Error :
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
:1480587125036,"applyBackgroundUpdates":1,"bootstrap":false,"size":3249525,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"47.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":null},{"os":"Linux","abi":null}],"multiprocessCompatible":false}
1480587127181 addons.xpi DEBUG getModTime: Recursive scan of fxdr...@googlecode.com
1480587127193 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1480587127198 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1480587127198 DeferredSave.extensions.json DEBUG Save changes
1480587127199 DeferredSave.extensions.json DEBUG Save changes
1480587127199 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"g65YbuEsdONQ","location":"app-global","version":"36.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"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 (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1480585310750,"updateDate":1480585310750,"applyBackgroundUpdates":1,"skinnable":true,"size":3175,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"36.0.1","maxVersion":"36.0.1"}],"targetPlatforms":[]}
1480587127199 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1480587127203 addons.xpi DEBUG Updating database with changes to installed add-ons
1480587127203 addons.xpi-utils DEBUG Updating add-on states
1480587127204 addons.xpi-utils DEBUG Writing add-ons list
1480587127208 addons.xpi-utils ERROR Failed to write add-ons list to profile directory: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js :: XPIDB_writeAddonsList :: line 1451"  data: no] Stack trace: XPIDB_writeAddonsList()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:1451 < XPI_checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3640 < XPI_startup()@resource://gre/modules/addons/XPIProvider.jsm:2091 < callProvider()@resource://gre/modules/AddonManager.jsm:208 < _startProvider()@resource://gre/modules/AddonManager.jsm:667 < AMI_startup()@resource://gre/modules/AddonManager.jsm:824 < AMP_startup()@resource://gre/modules/AddonManager.jsm:2402 < AMC_observe()@resource://gre/components/addonManager.js:55 < <file:unknown>
1480587127217 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1480587127217 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1480587127220 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1480587127220 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1480587128810 DeferredSave.extensions.json DEBUG Starting timer
1480587129117 DeferredSave.extensions.json DEBUG Starting write
1480587129298 DeferredSave.extensions.json DEBUG Write succeeded
1480587129298 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1480587130103 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at Gmail.main(Gmail.java:9)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
:1480587125036,"applyBackgroundUpdates":1,"bootstrap":false,"size":3249525,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"47.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":null},{"os":"Linux","abi":null}],"multiprocessCompatible":false}
1480587127181 addons.xpi DEBUG getModTime: Recursive scan of fxdr...@googlecode.com
1480587127193 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1480587127198 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1480587127198 DeferredSave.extensions.json DEBUG Save changes
1480587127199 DeferredSave.extensions.json DEBUG Save changes
1480587127199 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"g65YbuEsdONQ","location":"app-global","version":"36.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"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 (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1480585310750,"updateDate":1480585310750,"applyBackgroundUpdates":1,"skinnable":true,"size":3175,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"36.0.1","maxVersion":"36.0.1"}],"targetPlatforms":[]}
1480587127199 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1480587127203 addons.xpi DEBUG Updating database with changes to installed add-ons
1480587127203 addons.xpi-utils DEBUG Updating add-on states
1480587127204 addons.xpi-utils DEBUG Writing add-ons list
1480587127208 addons.xpi-utils ERROR Failed to write add-ons list to profile directory: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js :: XPIDB_writeAddonsList :: line 1451"  data: no] Stack trace: XPIDB_writeAddonsList()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:1451 < XPI_checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3640 < XPI_startup()@resource://gre/modules/addons/XPIProvider.jsm:2091 < callProvider()@resource://gre/modules/AddonManager.jsm:208 < _startProvider()@resource://gre/modules/AddonManager.jsm:667 < AMI_startup()@resource://gre/modules/AddonManager.jsm:824 < AMP_startup()@resource://gre/modules/AddonManager.jsm:2402 < AMC_observe()@resource://gre/components/addonManager.js:55 < <file:unknown>
1480587127217 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1480587127217 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1480587127220 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1480587127220 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1480587128810 DeferredSave.extensions.json DEBUG Starting timer
1480587129117 DeferredSave.extensions.json DEBUG Starting write
1480587129298 DeferredSave.extensions.json DEBUG Write succeeded
1480587129298 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1480587130103 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'
System info: host: 'MLBBTL-11860', ip: '192.168.1.109', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:124)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at Gmail.main(Gmail.java:9)
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:
:1480587125036,"applyBackgroundUpdates":1,"bootstrap":false,"size":3249525,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"47.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":null},{"os":"Linux","abi":null}],"multiprocessCompatible":false}
1480587127181 addons.xpi DEBUG getModTime: Recursive scan of fxdr...@googlecode.com
1480587127193 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1480587127198 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1480587127198 DeferredSave.extensions.json DEBUG Save changes
1480587127199 DeferredSave.extensions.json DEBUG Save changes
1480587127199 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"g65YbuEsdONQ","location":"app-global","version":"36.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"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 (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1480585310750,"updateDate":1480585310750,"applyBackgroundUpdates":1,"skinnable":true,"size":3175,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"36.0.1","maxVersion":"36.0.1"}],"targetPlatforms":[]}
1480587127199 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1480587127203 addons.xpi DEBUG Updating database with changes to installed add-ons
1480587127203 addons.xpi-utils DEBUG Updating add-on states
1480587127204 addons.xpi-utils DEBUG Writing add-ons list
1480587127208 addons.xpi-utils ERROR Failed to write add-ons list to profile directory: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js :: XPIDB_writeAddonsList :: line 1451"  data: no] Stack trace: XPIDB_writeAddonsList()@resource://gre/modules/addons/XPIProvider.jsm -> resource://gre/modules/addons/XPIProviderUtils.js:1451 < XPI_checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3640 < XPI_startup()@resource://gre/modules/addons/XPIProvider.jsm:2091 < callProvider()@resource://gre/modules/AddonManager.jsm:208 < _startProvider()@resource://gre/modules/AddonManager.jsm:667 < AMI_startup()@resource://gre/modules/AddonManager.jsm:824 < AMP_startup()@resource://gre/modules/AddonManager.jsm:2402 < AMC_observe()@resource://gre/components/addonManager.js:55 < <file:unknown>
1480587127217 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1480587127217 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1480587127220 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1480587127220 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1480587128810 DeferredSave.extensions.json DEBUG Starting timer
1480587129117 DeferredSave.extensions.json DEBUG Starting write
1480587129298 DeferredSave.extensions.json DEBUG Write succeeded
1480587129298 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1480587130103 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

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


please provide me how to resolve this issue , i tried loot of combinations but nothing works out.
really appreciate your help

darrell grainger

unread,
Dec 4, 2016, 11:26:03 PM12/4/16
to webdriver
First, are you sure you are using version 40.0 for Firefox? It looks like you are using version 36.0.1 from the console output. Regardless, version 40 was released August 11, 2015 and Selenium 2.53.0 was released March 15, 2016. Selenium support the latest three versions of browser. If you want to test against Firefox 40 then you need Selenium 2.48.0. Or if you want to stick with Selenium 2.53.0 then you need Firefox version 45.0. Firefox 44 and 43 might also work.

Christopher Merrill

unread,
Dec 8, 2016, 7:45:07 PM12/8/16
to webd...@googlegroups.com
I've had that problem when I had another selenium firefox driver starting up. It locks port 7055 during startup. When the second driver starts, it will wait until the port is released, or 45 seconds, whichever comes first. When the timeout occurs, it will fail with the error you listed.


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.



--
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
ch...@webperformance.com                |  http://webperformance.com
919-845-7601 x701                       |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

Reply all
Reply to author
Forward
0 new messages