Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. #7889

Closed
lukeis opened this issue Mar 4, 2016 · 3 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 7889

What steps will reproduce the problem?
1.Selenium Webdriver unable to connect firefox when i am trying to heat any url using
the following code.
2.package com.stta.SuiteOne;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;

import org.apache.commons.io.FileUtils;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class TakeSnapShot {

    public static void main(String[] args) throws IOException {

        //initialize webdriver
        WebDriver driver= new FirefoxDriver();

        //maximize window
        driver.manage().window().maximize();

        //wait for page to load
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

        //Goto URL
        driver.get("https://www.google.co.in/?gfe_rd=cr&ei=PO4TVK-CE6_M8gft_oDIBw&gws_rd=ssl");

        File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
        FileUtils.copyFile(srcFile, new File("F:\\backup\\Training\\WDDF\\snap\\snap1.png"),
true);

        //close driver
        driver.close();



    }
}
3.the console out put is
4.org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1
on port 7055 after 45000 ms. Firefox console output:
0592358230  addons.xpi  DEBUG   Notifying XPI shutdown observers
1410592358233   addons.manager  DEBUG   Async provider shutdown done
1410592359047   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm:
["XPIProvider"]
1410592359049   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm:
["LightweightThemeManager"]
1410592359050   addons.xpi  DEBUG   startup
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-local
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
1410592359054   addons.xpi  INFO    Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program
Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359054   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program
Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410592359055   addons.xpi  INFO    Mapping {e4f94d1e-2f53-401e-8885-681602c0ddd8} to C:\ProgramData\McAfee
Security Scan\Extensions\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi
1410592359058   addons.xpi  INFO    Mapping fxdriver@googlecode.com to C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\fxdriver@googlecode.com
1410592359058   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on
ID: C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\webdriver-staging
1410592359058   addons.xpi  DEBUG   checkForChanges
1410592359082   addons.xpi  DEBUG   No changes found
1410592359086   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359086   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla
Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359093   addons.xpi  DEBUG   Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
version 7.3.16540.9015
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
console.error: skype_ff_extension: 
  DEPRECATED: The widget module is deprecated.  Please consider using the sdk/ui module
instead.
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/<
    run(options);
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run
    let program = main(options.loader, options.main);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main
    return loader.load(loader, module).exports;
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line
14, in null
    var widgets = require("sdk/widget");
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require
    freeze(load(loader, module));
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null
    "The widget module is deprecated.  " +
  File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage
    let stack = get().slice(2);
JavaScript error: resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/c2c_options_menu_localization.js,
line 189: document.getElementById(...) is null

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
    at com.stta.SuiteOne.TakeSnapShot.main(TakeSnapShot.java:14)
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: 
0592358230  addons.xpi  DEBUG   Notifying XPI shutdown observers
1410592358233   addons.manager  DEBUG   Async provider shutdown done
1410592359047   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm:
["XPIProvider"]
1410592359049   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm:
["LightweightThemeManager"]
1410592359050   addons.xpi  DEBUG   startup
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-local
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
1410592359054   addons.xpi  INFO    Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program
Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359054   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program
Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410592359055   addons.xpi  INFO    Mapping {e4f94d1e-2f53-401e-8885-681602c0ddd8} to C:\ProgramData\McAfee
Security Scan\Extensions\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi
1410592359058   addons.xpi  INFO    Mapping fxdriver@googlecode.com to C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\fxdriver@googlecode.com
1410592359058   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on
ID: C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\webdriver-staging
1410592359058   addons.xpi  DEBUG   checkForChanges
1410592359082   addons.xpi  DEBUG   No changes found
1410592359086   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359086   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla
Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359093   addons.xpi  DEBUG   Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
version 7.3.16540.9015
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
console.error: skype_ff_extension: 
  DEPRECATED: The widget module is deprecated.  Please consider using the sdk/ui module
instead.
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/<
    run(options);
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run
    let program = main(options.loader, options.main);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main
    return loader.load(loader, module).exports;
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line
14, in null
    var widgets = require("sdk/widget");
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require
    freeze(load(loader, module));
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null
    "The widget module is deprecated.  " +
  File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage
    let stack = get().slice(2);
JavaScript error: resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/c2c_options_menu_localization.js,
line 189: document.getElementById(...) is null

Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:30'
System info: host: 'welcome-PC', ip: '192.168.1.65', os.name: 'Windows 7', os.arch:
'x86', os.version: '6.1', java.version: '1.7.0_67'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
    at com.stta.SuiteOne.TakeSnapShot.main(TakeSnapShot.java:14)
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:
0592358230  addons.xpi  DEBUG   Notifying XPI shutdown observers
1410592358233   addons.manager  DEBUG   Async provider shutdown done
1410592359047   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm:
["XPIProvider"]
1410592359049   addons.manager  DEBUG   Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm:
["LightweightThemeManager"]
1410592359050   addons.xpi  DEBUG   startup
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-local
1410592359052   addons.xpi  DEBUG   Skipping unavailable install location app-system-share
1410592359054   addons.xpi  INFO    Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program
Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359054   addons.xpi  INFO    Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program
Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1410592359055   addons.xpi  INFO    Mapping {e4f94d1e-2f53-401e-8885-681602c0ddd8} to C:\ProgramData\McAfee
Security Scan\Extensions\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi
1410592359058   addons.xpi  INFO    Mapping fxdriver@googlecode.com to C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\fxdriver@googlecode.com
1410592359058   addons.xpi  DEBUG   Ignoring file entry whose name is not a valid add-on
ID: C:\Users\welcome\AppData\Local\Temp\anonymous5659030434610182700webdriver-profile\extensions\webdriver-staging
1410592359058   addons.xpi  DEBUG   checkForChanges
1410592359082   addons.xpi  DEBUG   No changes found
1410592359086   addons.xpi  DEBUG   Registering manifest for C:\Program Files\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359086   addons.xpi  DEBUG   Loading bootstrap scope from C:\Program Files\Mozilla
Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi
1410592359093   addons.xpi  DEBUG   Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
version 7.3.16540.9015
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
console.error: skype_ff_extension: 
  DEPRECATED: The widget module is deprecated.  Please consider using the sdk/ui module
instead.
Traceback (most recent call last):
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/<
    run(options);
  File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run
    let program = main(options.loader, options.main);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main
    return loader.load(loader, module).exports;
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line
14, in null
    var widgets = require("sdk/widget");
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require
    freeze(load(loader, module));
  File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load
    result = load(loader, module);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load
    evaluate(sandbox, module.uri);
  File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate
    : loadSubScript(uri, sandbox, encoding);
  File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null
    "The widget module is deprecated.  " +
  File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage
    let stack = get().slice(2);
JavaScript error: resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/c2c_options_menu_localization.js,
line 189: document.getElementById(...) is null

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


What is the expected output? What do you see instead?
expected output is that when it opens the browser it should enter the url and shoul
perform desire action. 


Selenium version:selenium-2.42.2
OS: windows 7
Browser:Mozila firefox
Browser version: 32.0


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by yogesh.dawkhar on 2014-09-13 07:21:58

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Please upgrade your WebDriver to 2.43. This will resolve the above issue. 

Reported by suprinder on 2014-09-13 17:15:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2014-09-14 16:08:25

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:24:31

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant