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

Unable to connect to Firefox ESR 10.0.4 #3829

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

Unable to connect to Firefox ESR 10.0.4 #3829

lukeis opened this issue Mar 3, 2016 · 14 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 3, 2016

Originally reported on Google Code with ID 3829


I have an application that  uses Selenium WebDriver 2.13 to connect to FireFox this
has worked fine up until now, when I have been forced to use Firefox 10 ESR, Now the
following line causes the application to crash. I have tried with and without a profile
with the same effect.

driver = new FirefoxDriver();

Stack Trace and other info, the above code is on line 648

Command duration or timeout: 219 milliseconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1 build 2600 Service
Pack 3', java.version: '1.6.0'
Driver info: driver.version: FirefoxDriver
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
java.lang.reflect.Constructor.newInstance(Constructor.java:527)
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:175)
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128)
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459)
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:140)
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:95)
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147)
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:89)
cf.image.ImageRobot.startBrowser(ImageRobot.java:648)
cf.image.ImageRobot.access$4(ImageRobot.java:625)
cf.image.ImageRobot$4.run(ImageRobot.java:202)
cf.image.ImageRobot$9.widgetSelected(ImageRobot.java:330)
org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
org.eclipse.jface.window.Window.open(Window.java:801)
cf.image.ImageRobot.run(ImageRobot.java:104)
cf.image.ImageRobot.main(ImageRobot.java:622)

I initially tried it with 2.13 and then the last test, stacktrace above was with 2.21

Tested with Firefox ESR 10.0.4

Mike Tunstall

Reported by mike.tunstall on 2012-05-01 12:45:38

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

when changing the driver to ChromeDriver, the code works fine

Reported by mike.tunstall on 2012-05-02 15:52:37

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by barancev on 2012-05-03 14:53:54

  • Labels added: Component-WebDriver, Browser-Firefox, Lang-Java

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Reported by david.burns@theautomatedtester.co.uk on 2012-05-03 22:43:42

  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I compiled and ran the example from here http://seleniumhq.org/docs/03_webdriver.html#introducing-the-selenium-webdriver-api-by-example

But that crashed with the following stack trace 


Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException:
Error communicating with the remote browser. It may have died.
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1 build 2600 Service
Pack 3', java.version: '1.6.0'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:454)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:201)
    at org.openqa.selenium.example.Selenium2Example.main(Selenium2Example.java:18)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:7055
refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:321)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:282)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:129)
    at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:279)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:432)
    ... 2 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:381)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:243)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:230)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
    at java.net.Socket.connect(Socket.java:539)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
    ... 12 more

Reported by mike.tunstall on 2012-05-04 12:03:01

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

If you have a browser started (a browser window appear), but it does not execute any
commands -- check your proxy settings, it is possible that the proxy blocks connections
to localhost:7055

Reported by barancev on 2012-05-04 12:28:35

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Yes, the browser does appear but stays blank, I have not set up the code to use proxies.
I have also checked the firewall logs and system logs on the machine and nothing is
being blocked when the code is running.

Also I have tried running the Selenium2Example code on another machine with Firefox
11 and 12 and it runs fine.

Reported by mike.tunstall on 2012-05-05 09:34:45

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have reproduced this. will look into it

Reported by david.burns@theautomatedtester.co.uk on 2012-05-05 09:58:37

  • Status changed: Accepted

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I have upgraded original machine to firefox 12 and Selenium2Example and my code work
ok, but I have to test firefox 10 ESR as that is what the users are using.

Reported by mike.tunstall on 2012-05-05 10:16:53

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thank you

Reported by mike.tunstall on 2012-05-05 10:17:54

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Looks like my install was a bit broken from work that I was doing. With a clean install
it is working fine.

Can you install Firefox 12 on this machine and try again? You can install multiple
versions of Firefox on the same machine

Reported by david.burns@theautomatedtester.co.uk on 2012-05-05 16:00:08

  • Status changed: NeedsClarification

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

I uninstalled Firefox 10.0.4 ESR and Firefox 12 cleared out the folders in Local Settings
and Program Files folders,then re-installed 10.0.4 ESR and ran my code again.

Code is running in Rational Application Developer 8, throws the following


Exception in thread "main" org.openqa.selenium.WebDriverException: Session not found:
69c317d7-b0d2-4b52-b8c2-2aaa186e0743
Command duration or timeout: 2.31 seconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1 build 2600 Service
Pack 3', java.version: '1.6.0'
Driver info: driver.version: RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:175)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:201)
    at org.openqa.selenium.example.Selenium2Example.main(Selenium2Example.java:18)
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Session
not found: 69c317d7-b0d2-4b52-b8c2-2aaa186e0743
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1 build 2600 Service
Pack 3', java.version: '1.6.0'
Driver info: driver.version: unknown
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/command_processor.js:9820)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:5605)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:5761)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:5708)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/driver_component.js:9772)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:1935)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:2261)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:1168)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:1616)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:1464)
    at <anonymous class>.<anonymous method>(file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/anonymous4596640771795036861webdriver-profile/extensions/fxdriver@googlecode.com/components/httpd.js:1333)

Reported by mike.tunstall on 2012-05-08 16:05:44

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

This can be closed now, I have found that the Firefox ESR release from the Mozilla website
works fine. The problem is with the edition released internally by the company I work
for.

Reported by mike.tunstall on 2012-06-07 08:53:03

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

Thanks for letting us know!

Reported by david.burns@theautomatedtester.co.uk on 2012-06-07 09:45:06

  • Status changed: WontFix

@lukeis
Copy link
Member Author

lukeis commented Mar 3, 2016

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

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 3, 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