selenium: selenium-html-runner throws BindException

Meta -

OS: Ubuntu 16.04

Selenium Version: 3.0.0-beta3

Browser: Firefox

Browser Version: 48.0

Expected Behavior -

Seeing new Firefox opening and browsing to www.google.com

Actual Behavior -

Firefox opens and then closes immediately with following error message.

Steps to reproduce -

With latest geckodriver and simple IDE test.

vainiju@vainiju-ThinkPad-P50 ~/selenium-html
» l
yhteensä 19M
-rw-r--r-- 1 vainiju vainiju  763 2016-09-02 12:41 simple-ide-generated-test.html
-rwxrwxr-x 1 vainiju vainiju 3.7M 2016-08-03 01:49 geckodriver
-rw-r----- 1 vainiju vainiju  15M 2016-09-02 01:29 selenium-html-runner-3.0.0-beta3.jar

Executing selenium-html-runner causes following error.

vainiju@vainiju-ThinkPad-P50 ~/selenium-html 
» /opt/tools/oracle-jdk/jdk1.8.0_91/bin/java -jar selenium-html-runner-3.0.0-beta3.jar /tmp/output-selenium simple-ide-generated-test.html http://www.google.com false *firefox

Sep 02, 2016 1:37:41 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1472812662277   Marionette  INFO    Listening on port 42734
1472812663347   Marionette  INFO    startBrowser d26740c7-6738-4f90-8628-dd5fecdbf346
1472812663355   Marionette  INFO    sendAsync d26740c7-6738-4f90-8628-dd5fecdbf346

(process:7296): GLib-CRITICAL **: g_path_get_basename: assertion 'file_name != NULL' failed
Sep 02, 2016 1:37:43 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2016-09-02 13:37:43.549:INFO::main: Logging initialized @2243ms
2016-09-02 13:37:43.577:INFO:osjs.Server:main: jetty-9.2.z-SNAPSHOT
2016-09-02 13:37:43.590:INFO:osjs.ServerConnector:main: Started ServerConnector@1ddf84b8{HTTP/1.1}{0.0.0.0:7330}
2016-09-02 13:37:43.591:INFO:osjs.Server:main: Started @2284ms
2016-09-02 13:37:43.592:INFO:osjs.ServerConnector:main: Stopped ServerConnector@1ddf84b8{HTTP/1.1}{0.0.0.0:7330}
[Child 7296] ###!!! ABORT: Aborting on channel error.: file /build/firefox-6p7T67/firefox-48.0+build2/ipc/glue/MessageChannel.cpp, line 2046
[Child 7296] ###!!! ABORT: Aborting on channel error.: file /build/firefox-6p7T67/firefox-48.0+build2/ipc/glue/MessageChannel.cpp, line 2046
Sep 02, 2016 1:37:43 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNING: Test of browser failed: *firefox
java.io.IOException: java.lang.RuntimeException: java.net.BindException: Osoite on jo käytössä
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.determineSuiteUrl(HTMLLauncher.java:188)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:85)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:239)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:251)
Caused by: java.lang.RuntimeException: java.net.BindException: Osoite on jo käytössä
    at org.openqa.selenium.net.PortProber.pollPort(PortProber.java:154)
    at org.openqa.selenium.net.PortProber.pollPort(PortProber.java:137)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.determineSuiteUrl(HTMLLauncher.java:182)
    ... 4 more
Caused by: java.net.BindException: Osoite on jo käytössä
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    at java.net.Socket.bind(Socket.java:644)
    at org.openqa.selenium.net.PortProber.pollPort(PortProber.java:146)
    ... 6 more

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Me too, firefox opens and closes straight away. I’m using similar syntax to the above.

I’m trying to run automation from command line using selenium-html-runner-301 and getting “Address already in use: JVM_Bind”

Command line: java -jar selenium-html-runner-3.0.1.jar -htmlSuite "*firefox" http://192.168.42.33:8105/Login/Login "C:\tests\workspace\suite.html" "c:\tests\seleniumResults.html"

Firefox launches briefly then closes with the bind error in the command window.

Having the same problem here. Can someone reopen this issue? Or has someone created a new one?